Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use global installed instead of local dependency #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants