Assume npx (as in meteor npx ...) is a valid command.

Sometimes, before dev_bundle/bin/.meteor-commands.json has been written, a
command like `./meteor npx tsc` can fail because `npx` is not blessed in
the same way `node` and `npm` are. Since `npx` is a core tool that we want
folks to be able to use without confusion, I think it makes sense to
include it in the list of known subcommands.
This commit is contained in:
Ben Newman
2019-07-15 12:32:42 -04:00
parent d350e25c01
commit e299c86ecf

View File

@@ -38,7 +38,8 @@ exports.getCommand = function (name, devBundleDir) {
function isValidCommand(name, devBundleDir) {
if (name === "node" ||
name === "npm") {
name === "npm" ||
name === "npx") {
return true;
}