Skip to content

Commit 798b088

Browse files
committed
Pin firebase-tools
1 parent 472628f commit 798b088

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ test-functions: build-functions
1616
&& cd -
1717

1818
deploy-hosting:
19-
firebase --project=$(PROJECT) deploy --only hosting
19+
cd functions \
20+
&& npx firebase --project=$(PROJECT) deploy --only hosting \
21+
&& cd -
2022

2123
deploy-functions-config:
2224
cd functions \
23-
&& ./node_modules/.bin/ts-node src/scripts/deploy-config.ts config/config.json $(PROJECT) \
25+
&& npx ts-node src/scripts/deploy-config.ts config/config.json $(PROJECT) \
2426
&& cd -
2527

2628
deploy-functions: test-functions
27-
firebase --project=$(PROJECT) deploy --only functions
29+
cd functions \
30+
&& npx firebase --project=$(PROJECT) deploy --only functions \
31+
&& cd -
2832

2933
deploy: check-config deploy-functions-config deploy-functions deploy-hosting

0 commit comments

Comments
 (0)