Files
meteor/tools/tests/apps/dev-bundle-bin-commands/package.json
Jesse Rosenberger 97cb2c14a8 "meteor npm/node" should return exit code from command
Fixes #6673

The Meteor "dev bundle bin commands" which proxy through to the
meteor version of npm/node was not returning the exit code from the
command which it executed.  This creates problems for things like
`meteor npm run script-name` when the exit code is important.  This
comes into play when you run npm scripts which run tests, lint code, etc.

This fix causes the meteor-tool to process.exit with the spawned process
exit code.

Windows Disclaimer: I used the same flush-buffers-on-exit-in-windows
that the tool/cli/main.js uses because I would assume the same problem
exists, however, I don't have the Windows environment to test or confirm
that this code works at all.

Also, couldn't find any tests that directly tested this dev bundle
bin-command passing scenario (though hard to search through them all),
so I created a barebones test app and tests.
2016-04-01 17:09:03 +03:00

13 lines
315 B
JSON

{
"name": "dev-bundle-bin-commands",
"private": true,
"scripts": {
"start": "meteor run",
"exit-with-status": "echo \"This script has an exit status\" && exit 1",
"exit-normally": "echo \"This script will exit normally\" && exit 0"
},
"dependencies": {
"meteor-node-stubs": "~0.2.0"
}
}