Join the Stack Overflow Community
Stack Overflow is a community of 6.5 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

Consider the following example package.json fragment:

{
   // ...
   "scripts": {
       "start": "npm run b -- --watch",
       "build": "builder --in src --out dest"
   }
   // ...
}

In this, I run build from start, and give it an extra flag. The problem with this approach is it actually creates another instance of the NPM run. It works, but it's ugly.

Is there a clean way to reference the build command from the start command without having to make another call to NPM?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.