We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
yarn
1 parent a71defa commit 5df2022Copy full SHA for 5df2022
resources/prepublish.sh
@@ -1,7 +1,7 @@
1
# Because of a long-running npm issue (https://github.com/npm/npm/issues/3059)
2
# prepublish runs after `npm install` and `npm pack`.
3
# In order to only run prepublish before `npm publish`, we have to check argv.
4
-if node -e "process.exit(($npm_config_argv).original[0].indexOf('pu') === 0)"; then
+if node -e "process.exit(($npm_config_argv).original.length > 0 && ($npm_config_argv).original[0].indexOf('pu') === 0)"; then
5
exit 0;
6
fi
7
0 commit comments