Skip to content

Conversation

@NumminorihSF
Copy link

There is a problem with npm scripts that run another npm scripts
now. For example:

 "scripts": {
   "sc1": "doAnything && ENV=ENV_WE_NEED npm run sc2",
   "presc2": "some-work",
   "sc2": "some-work",
   "postsc2": "some-work",
 }

sc1 script will be run via global installed npm. But sc2 will be run
via npm@2 (local installed). Sometimes it breaks scripts.
This commit allow to use global npm as local package.

There is a problem with npm scripts that run another npm scripts
now. For example:
```
 "scripts": {
   "sc1": "doAnything && ENV=ENV_WE_NEED npm run sc2",
   "presc2": "some-work",
   "sc2": "some-work",
   "postsc2": "some-work",
 }
```

sc1 script will be run via global installed npm. But sc2 will be run
via npm@2 (local installed). Sometimes it breaks scripts.
This commit allow to use global npm as local package.
@CLAassistant
Copy link

CLAassistant commented Oct 30, 2017

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants