mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Test code was requiring the install-runtime.js module without requiring the index.js module, so global.Promise was not defined.
24 lines
683 B
JavaScript
24 lines
683 B
JavaScript
require("./tool-env/install-promise.js");
|
|
|
|
require("./cli/dev-bundle-bin-commands.js").then(function (child) {
|
|
if (! child) {
|
|
// Use process.nextTick here to prevent the Promise from swallowing
|
|
// errors from the rest of the setup code.
|
|
process.nextTick(continueSetup);
|
|
}
|
|
// If we spawned a process to handle a dev_bundle/bin command like
|
|
// `meteor npm` or `meteor node`, then don't run any other tool code.
|
|
}, function (error) {
|
|
process.nextTick(function () {
|
|
throw error;
|
|
});
|
|
});
|
|
|
|
function continueSetup() {
|
|
// Set up the Babel transpiler
|
|
require('./tool-env/install-babel.js');
|
|
|
|
// Run the Meteor command line tool
|
|
require('./cli/main.js');
|
|
}
|