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

Add '|| exit' 0 to opencollective #658

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Conversation

fr1n63
Copy link
Contributor

@fr1n63 fr1n63 commented Dec 1, 2017

https://github.com/opencollective/opencollective-postinstall

Why || exit 0 in scripts.postinstall?
Since we are adding the dependency in devDependencies, the script ./node_modules/.bin/opencollective-postinstall won't be installed in production. Therefore, the postinstall script will return an error and will interrupt the npm install process. Adding || exit 0 makes sure that this postinstall script always returns true.

https://github.com/opencollective/opencollective-postinstall

Why || exit 0 in scripts.postinstall?
Since we are adding the dependency in devDependencies, the script ./node_modules/.bin/opencollective-postinstall won't be installed in production. Therefore, the postinstall script will return an error and will interrupt the npm install process. Adding || exit 0 makes sure that this postinstall script always returns true.
@Salakar Salakar merged commit 43070b8 into invertase:master Jan 17, 2018
@fr1n63 fr1n63 deleted the patch-1 branch May 22, 2018 11:38
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