File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 28
28
"mocha" : " src/**/__tests__/**/*.js"
29
29
},
30
30
"scripts" : {
31
- "prepublish" : " npm test && npm run build " ,
31
+ "prepublish" : " ./resources/prepublish.sh " ,
32
32
"test" : " npm run lint && npm run check && npm run testonly" ,
33
33
"testonly" : " babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha" ,
34
34
"lint" : " eslint src" ,
Original file line number Diff line number Diff line change
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
5
+ exit 0;
6
+ fi
7
+
8
+ npm test && npm run build
You can’t perform that action at this time.
0 commit comments