@moonrepo/cli
Version:
moon command line and core system.
20 lines (15 loc) • 342 B
JavaScript
const cp = require('child_process');
const path = require('path');
const result = cp.spawnSync(
path.join(__dirname, process.platform === 'win32' ? 'moon.exe' : 'moon'),
process.argv.slice(2),
{
shell: false,
stdio: 'inherit',
},
);
if (result.error) {
throw result.error;
}
process.exitCode = result.status;