neex 0.7.7 → 0.7.8
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/README.md +1 -1
- package/dist/src/commands/init-commands.js +5 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,29 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runInit = void 0;
|
|
4
4
|
// src/commands/init-commands.ts
|
|
5
5
|
const child_process_1 = require("child_process");
|
|
6
|
-
const os_1 = require("os");
|
|
7
6
|
function runInit(args) {
|
|
8
|
-
//
|
|
9
|
-
const
|
|
10
|
-
const command = isWindows ? 'npx.cmd' : 'npx';
|
|
11
|
-
console.log('Initializing new project...');
|
|
12
|
-
const child = (0, child_process_1.spawn)(command, ['create-neex', ...args], {
|
|
7
|
+
// No extra logs, just run the command.
|
|
8
|
+
const child = (0, child_process_1.spawn)('npx', ['create-neex', ...args], {
|
|
13
9
|
stdio: 'inherit',
|
|
14
|
-
shell:
|
|
15
|
-
env: process.env
|
|
10
|
+
shell: true
|
|
16
11
|
});
|
|
17
12
|
child.on('close', (code) => {
|
|
18
|
-
|
|
19
|
-
console.log('Project initialized successfully!');
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
console.error(`Process exited with code ${code}`);
|
|
23
|
-
}
|
|
13
|
+
// The process exit code will be inherited from the child process.
|
|
24
14
|
process.exit(code !== null && code !== void 0 ? code : 1);
|
|
25
15
|
});
|
|
26
16
|
child.on('error', (err) => {
|
|
27
|
-
console.error('Failed to start npx create-neex:', err
|
|
28
|
-
console.error('Make sure npm/npx is installed and accessible');
|
|
17
|
+
console.error('Failed to start npx create-neex:', err);
|
|
29
18
|
process.exit(1);
|
|
30
19
|
});
|
|
31
20
|
}
|