Skip to content

Commit 8d9ee1b

Browse files
authored
Merge pull request #367 from nicolasnoble/better-prepublish
Ensuring the presence of node-pre-gyp before publishing.
2 parents abe41bf + 087a832 commit 8d9ee1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/grpc-native-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"electron-build": "./node_modules/.bin/node-pre-gyp configure build --runtime=electron --disturl=https://atom.io/download/atom-shell",
2424
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test",
2525
"install": "./node_modules/.bin/node-pre-gyp install --fallback-to-build --library=static_library",
26-
"prepublish": "git submodule update --init --recursive"
26+
"prepack": "git submodule update --init --recursive && npm install"
2727
},
2828
"bundledDependencies": [
2929
"node-pre-gyp"

packages/grpc-native-core/templates/package.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"electron-build": "./node_modules/.bin/node-pre-gyp configure build --runtime=electron --disturl=https://atom.io/download/atom-shell",
2626
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test",
2727
"install": "./node_modules/.bin/node-pre-gyp install --fallback-to-build --library=static_library",
28-
"prepublish": "git submodule update --init --recursive"
28+
"prepack": "git submodule update --init --recursive && npm install"
2929
},
3030
"bundledDependencies": [
3131
"node-pre-gyp"

0 commit comments

Comments
 (0)