We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07064c2 commit 7535201Copy full SHA for 7535201
scripts/ci-test/deploy-if-needed.ts
@@ -23,6 +23,7 @@
23
import { resolve } from 'path';
24
import chalk from 'chalk';
25
import simpleGit from 'simple-git';
26
+import { exec } from 'child-process-promise';
27
const firebaseTools = require('firebase-tools');
28
29
const root = resolve(__dirname, '../..');
@@ -83,6 +84,12 @@ async function deployIfNeeded() {
83
84
chalk`{blue firebase.json changed - deploying full config directory. }`
85
);
86
}
87
+ if (flags[0] === 'all' || flags.includes('functions')) {
88
+ // npm install the dependencies for functions
89
+ await exec('npm install', {
90
+ cwd: resolve(__dirname, '../config/functions')
91
+ });
92
+ }
93
await firebaseTools.deploy(deployOptions);
94
95
0 commit comments