Skip to content

Commit 75faf94

Browse files
author
Jacob Wenger
authored
Added build:release npm script (#130)
* Added build:release npm script for use in Catapult. * Fixed issue with build:pack npm script which did not work. * Updated .gitignore to ignore packed tag files.
1 parent 461e8bb commit 75faf94

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ coverage
88
node_modules
99
typings
1010
.vscode/
11+
firebase-functions-*.tgz

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
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 && node_modules/.bin/tsc -p tsconfig.release.json && npm pack && npm install",
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",
9+
"build:release": "npm install --production && npm install typescript firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json",
910
"lint": "node_modules/.bin/tslint src/{**/*,*}.ts spec/{**/*,*}.ts",
1011
"pretest": "node_modules/.bin/tsc && cp -r spec/fixtures .tmp/spec",
1112
"test": "mocha .tmp/spec/index.spec.js",

0 commit comments

Comments
 (0)