Add || exit 0 to opencollective

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.
This commit is contained in:
fr1n63 2017-12-01 17:10:05 +00:00 committed by GitHub
parent c81a786014
commit fd3f316e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
"flow": "flow",
"lint": "eslint ./src",
"prepublish": "npm run clean && npm run build",
"postinstall": "postinstall-build dist && opencollective postinstall",
"postinstall": "postinstall-build dist && opencollective postinstall || exit 0",
"test-cli": "node ./bin/test.js",
"tests-packager": "cd tests && npm run start",
"tests-npm-install": "cd tests && npm install",