From 322470da688a6ad7ea552456525ff482d8bdc9db Mon Sep 17 00:00:00 2001 From: Robert-Jan Huijsman Date: Thu, 20 Jul 2017 00:36:10 -0700 Subject: [PATCH] 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'". --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 45ef64e58..74676f82e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "build": "node_modules/.bin/tsc -p tsconfig.release.json", - "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", + "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", "build:release": "npm install --production && npm install typescript firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json", "lint": "node_modules/.bin/tslint src/{**/*,*}.ts spec/{**/*,*}.ts integration_test/functions/src/{**/*,*}.ts", "pretest": "node_modules/.bin/tsc && cp -r spec/fixtures .tmp/spec",