UNPKG

867 BJavaScriptView Raw
1const { spawn } = require('child_process');
2const [_node, _bin, ...args] = process.argv;
3
4console.log(
5 '===================================================================='
6);
7console.log('');
8console.log(
9 ' The `ember` node module is a placeholder, you may be looking for:'
10);
11console.log('');
12console.log(' * `ember-cli` (the command line tool) ');
13console.log(' * `ember-source` (the framework code) ');
14console.log('');
15console.log(' Visit https://emberjs.com/ for more details');
16console.log('');
17console.log(
18 '===================================================================='
19);
20
21
22if (args.includes('--postinstall')) {
23 return;
24}
25
26console.log('');
27console.log(
28 ` Forwarding request to ember-cli via \`npx ember-cli ${args.join(' ')}\``
29);
30
31spawn('npx', ['ember-cli', ...args], {
32 stdio: 'inherit',
33}).on('exit', code => process.exit(code));