Experimental port to Firebase hosting
This commit is contained in:
14
scripts/postinstall.js
Normal file
14
scripts/postinstall.js
Normal file
@ -0,0 +1,14 @@
|
||||
const path = require('path');
|
||||
const execSync = require('child_process').execSync;
|
||||
|
||||
function exec(cmd) {
|
||||
execSync(cmd, { stdio: 'inherit', env: process.env });
|
||||
}
|
||||
|
||||
process.chdir(path.resolve(__dirname, '../functions'));
|
||||
|
||||
if (process.env.CI) {
|
||||
exec('npm ci');
|
||||
} else {
|
||||
exec('npm install');
|
||||
}
|
||||
Reference in New Issue
Block a user