Files
meteor/tools/index.js
Leonardo Venturini 6804b236b2 Fix Node.js version issue (#13199)
* commit logs

* use the correct tools dir when using meteor warehouse dir env var

* remove logs

* remove logs

* run bin commands after springboarding

* revert change

* revert change

* fix npm command for checkout

* avoid to use unexisting tools path within a sandbox that describe a warehouse

---------

Co-authored-by: Nacho Codoñer <igcogi@gmail.com>
2024-07-11 08:37:16 -04:00

24 lines
686 B
JavaScript

const { getChildProcess } = require('./cli/dev-bundle-bin-commands')
getChildProcess({ isFirstTry: true }).then((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.
}, (error) => {
process.nextTick(function () {
throw error;
});
});
function continueSetup() {
// Set up the Babel transpiler
require('./tool-env/install-babel');
// Run the Meteor command line tool
require('./cli/main');
}