movehat 0.0.1-alpha.0 → 0.0.2-alpha.0
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/movehat.js +4 -12
- package/dist/templates/package.json +1 -1
- package/package.json +1 -1
- package/src/templates/package.json +1 -1
package/bin/movehat.js
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { spawn } from 'child_process';
|
|
4
3
|
import { fileURLToPath } from 'url';
|
|
5
4
|
import { dirname, join } from 'path';
|
|
6
5
|
|
|
7
6
|
const __filename = fileURLToPath(import.meta.url);
|
|
8
7
|
const __dirname = dirname(__filename);
|
|
9
8
|
|
|
10
|
-
// Get the path to the
|
|
11
|
-
const cliPath = join(__dirname, '..', '
|
|
9
|
+
// Get the path to the compiled CLI file
|
|
10
|
+
const cliPath = join(__dirname, '..', 'dist', 'cli.js');
|
|
12
11
|
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
stdio: 'inherit',
|
|
16
|
-
shell: false,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
child.on('exit', (code) => {
|
|
20
|
-
process.exit(code || 0);
|
|
21
|
-
});
|
|
12
|
+
// Import and run the CLI
|
|
13
|
+
await import(cliPath);
|
package/package.json
CHANGED