Skip to content

Commit cb37232

Browse files
library split
1 parent 738358d commit cb37232

File tree

19 files changed

+482
-445
lines changed

19 files changed

+482
-445
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
},
1919
"bin": {
20-
"walkeros": "./dist/index.js"
20+
"walkeros": "./dist/cli.js"
2121
},
2222
"files": [
2323
"dist/**",

packages/cli/src/__tests__/cli-e2e.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import fs from 'fs-extra';
1313
// Resolve paths relative to the cli package root (two levels up from __tests__)
1414
// so the test works regardless of Jest's cwd.
1515
const projectRoot = resolve(__dirname, '..', '..');
16-
const cliPath = join(projectRoot, 'dist/index.js');
16+
const cliPath = join(projectRoot, 'dist/cli.js');
1717

1818
// Skip when dist/ doesn't exist (turbo runs test without build).
1919
// These tests run via `npm run test:integration` which builds first.
20-
// If you add a new test file that spawns dist/index.js, add its pattern
20+
// If you add a new test file that spawns dist/cli.js, add its pattern
2121
// to the test:integration script in package.json.
2222
const describeIfBuilt = existsSync(cliPath) ? describe : describe.skip;
2323

@@ -141,7 +141,7 @@ function runCLI(
141141
timeoutMs = 120000,
142142
): Promise<{ code: number; stdout: string; stderr: string }> {
143143
return new Promise((resolve) => {
144-
const child = spawn('node', [join(projectRoot, 'dist/index.js'), ...args], {
144+
const child = spawn('node', [join(projectRoot, 'dist/cli.js'), ...args], {
145145
cwd: projectRoot,
146146
env: { ...process.env, FORCE_COLOR: '0' },
147147
});

packages/cli/src/__tests__/cli.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { getId } from '@walkeros/core';
77
// Resolve paths relative to the cli package root (two levels up from __tests__)
88
// so the test works regardless of Jest's cwd.
99
const pkgRoot = path.resolve(__dirname, '..', '..');
10-
const cliPath = path.join(pkgRoot, 'dist/index.js');
10+
const cliPath = path.join(pkgRoot, 'dist/cli.js');
1111

1212
// Skip when dist/ doesn't exist (turbo runs test without build).
1313
// These tests run via `npm run test:integration` which builds first.
14-
// If you add a new test file that spawns dist/index.js, add its pattern
14+
// If you add a new test file that spawns dist/cli.js, add its pattern
1515
// to the test:integration script in package.json.
1616
const describeIfBuilt = existsSync(cliPath) ? describe : describe.skip;
1717

@@ -42,7 +42,7 @@ describeIfBuilt('CLI Bundle Command', () => {
4242
return new Promise((resolve) => {
4343
const child = spawn(
4444
'node',
45-
[path.join(pkgRoot, 'dist/index.js'), ...args],
45+
[path.join(pkgRoot, 'dist/cli.js'), ...args],
4646
{
4747
stdio: 'pipe',
4848
shell: false,

0 commit comments

Comments
 (0)