@ducky7go/ducky-cli 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ducky +4 -7
- package/package.json +1 -1
package/bin/ducky
CHANGED
|
@@ -6,16 +6,13 @@ import { dirname, join } from 'path';
|
|
|
6
6
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
7
|
const __dirname = dirname(__filename);
|
|
8
8
|
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
const scriptPath =
|
|
12
|
-
? join(__dirname, '..', 'src', 'cli.ts')
|
|
13
|
-
: join(__dirname, '..', 'dist', 'cli.js');
|
|
9
|
+
// Always use compiled JS (dist/cli.js)
|
|
10
|
+
// In development, run 'npm run build' first
|
|
11
|
+
const scriptPath = join(__dirname, '..', 'dist', 'cli.js');
|
|
14
12
|
|
|
15
13
|
const args = process.argv.slice(2);
|
|
16
|
-
const runner = isDev ? 'tsx' : 'node';
|
|
17
14
|
|
|
18
|
-
const child = spawn(
|
|
15
|
+
const child = spawn('node', [scriptPath, ...args], {
|
|
19
16
|
stdio: 'inherit',
|
|
20
17
|
env: process.env,
|
|
21
18
|
});
|