@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.
Files changed (2) hide show
  1. package/bin/ducky +4 -7
  2. 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
- // Run the CLI with tsx in development, or compiled JS in production
10
- const isDev = process.env.NODE_ENV !== 'production';
11
- const scriptPath = isDev
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(runner, [scriptPath, ...args], {
15
+ const child = spawn('node', [scriptPath, ...args], {
19
16
  stdio: 'inherit',
20
17
  env: process.env,
21
18
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ducky7go/ducky-cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "CLI tool for packaging and publishing game mods to NuGet",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",