From cb51e1f84f2a20591fb7b3d5f635c877f642c98a Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Wed, 9 May 2018 10:29:02 -0700 Subject: [PATCH] Stop myself from publishing packages with a mismatched submodule --- packages/grpc-native-core/package.json | 3 ++- packages/grpc-native-core/templates/package.json.template | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/grpc-native-core/package.json b/packages/grpc-native-core/package.json index 97f96c66..cd632a04 100644 --- a/packages/grpc-native-core/package.json +++ b/packages/grpc-native-core/package.json @@ -22,7 +22,8 @@ "build": "./node_modules/.bin/node-pre-gyp build", "electron-build": "./node_modules/.bin/node-pre-gyp configure build --runtime=electron --disturl=https://atom.io/download/atom-shell", "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test", - "install": "./node_modules/.bin/node-pre-gyp install --fallback-to-build --library=static_library" + "install": "./node_modules/.bin/node-pre-gyp install --fallback-to-build --library=static_library", + "prepublish": "git submodule update --init --recursive" }, "bundledDependencies": [ "node-pre-gyp" diff --git a/packages/grpc-native-core/templates/package.json.template b/packages/grpc-native-core/templates/package.json.template index f285b0a2..9f8d228b 100644 --- a/packages/grpc-native-core/templates/package.json.template +++ b/packages/grpc-native-core/templates/package.json.template @@ -24,7 +24,8 @@ "build": "./node_modules/.bin/node-pre-gyp build", "electron-build": "./node_modules/.bin/node-pre-gyp configure build --runtime=electron --disturl=https://atom.io/download/atom-shell", "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test", - "install": "./node_modules/.bin/node-pre-gyp install --fallback-to-build --library=static_library" + "install": "./node_modules/.bin/node-pre-gyp install --fallback-to-build --library=static_library", + "prepublish": "git submodule update --init --recursive" }, "bundledDependencies": [ "node-pre-gyp"