neex
Version:
Neex - Modern Fullstack Framework Built on Express and Next.js. Fast to Start, Easy to Build, Ready to Deploy
21 lines (20 loc) • 759 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runInit = runInit;
// src/commands/init-commands.ts
const child_process_1 = require("child_process");
function runInit(args) {
// No extra logs, just run the command.
const child = (0, child_process_1.spawn)('npx', ['create-neex', ...args], {
stdio: 'inherit', // This will show the output of create-neex directly
shell: true
});
child.on('close', (code) => {
// The process exit code will be inherited from the child process.
process.exit(code !== null && code !== void 0 ? code : 1);
});
child.on('error', (err) => {
console.error('Failed to start npx create-neex:', err);
process.exit(1);
});
}