Skip to content

Commit 0951c0c

Browse files
author
Robert-Jan Huijsman
authored
Allow "npm run build:pack" to work even in a cleanly-cloned directory; previously the lack of a plain 'npm install' command caused it to fail with errors like "Cannot find module 'lodash'". (#75)
1 parent 756e117 commit 0951c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"scripts": {
77
"build": "node_modules/.bin/tsc -p tsconfig.release.json",
8-
"build:pack": "npm prune --production && rm -rf lib && npm install typescript firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json && npm pack && npm install",
8+
"build:pack": "npm prune --production && rm -rf lib && npm install && npm install firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json && npm pack && npm install",
99
"build:release": "npm install --production && npm install typescript firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json",
1010
"lint": "node_modules/.bin/tslint src/{**/*,*}.ts spec/{**/*,*}.ts integration_test/functions/src/{**/*,*}.ts",
1111
"pretest": "node_modules/.bin/tsc && cp -r spec/fixtures .tmp/spec",

0 commit comments

Comments
 (0)