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 3e1d41c commit b093434Copy full SHA for b093434
script.js
@@ -1,6 +1,20 @@
1
-const childProcess = require('child_process');
+const { exec } = require('child_process');
2
const fs = require('fs');
3
4
-if (fs.existsSync('./no-postinstall')) {
5
- childProcess.execSync('node ./lib/postinstall.js');
+if (fs.existsSync('./.no-postinstall')) {
+ console.log('Post install script was not run');
6
+ process.exit(0);
7
}
8
+
9
+console.info('Attempting to configure firebase storage adapter\n\n');
10
+const postInstall = exec('node ./lib/postinstall.js', function (error, stdout, stderr) {
11
+ if (error) {
12
+ console.error(error.stack);
13
+ }
14
+});
15
16
+postInstall.on('exit', () => {
17
+ if (postInstall.exitCode === 0) {
18
+ console.info('You project was configured successfully');
19
20
0 commit comments