@nu-art/build-and-install 0.204.24 → 0.204.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/phases/phases.js +14 -7
package/package.json
CHANGED
package/phases/phases.js
CHANGED
|
@@ -613,16 +613,23 @@ exports.Phase_Launch = {
|
|
|
613
613
|
if (pkg.type === 'firebase-functions-app') {
|
|
614
614
|
await (0, ts_common_1.sleep)(1000 * counter++);
|
|
615
615
|
const allPorts = Array.from({ length: 10 }, (_, i) => `${pkg.envConfig.basePort + i}`);
|
|
616
|
-
|
|
616
|
+
runningAppsLogs.registerApp(pkg.name, logClient);
|
|
617
|
+
await nvm_1.NVM.createCommando(basic_1.Cli_Basic)
|
|
617
618
|
.setUID(pkg.name)
|
|
618
|
-
.cd(pkg.path)
|
|
619
|
-
.append(`nvm use`)
|
|
620
619
|
.append(`array=($(lsof -ti:${allPorts.join(',')}))`)
|
|
621
|
-
.append(`((\${#array[@]} > 0)) && kill -9 "\${array[@]}"`)
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
620
|
+
.append(`((\${#array[@]} > 0)) && kill -9 "\${array[@]}"`)
|
|
621
|
+
.execute();
|
|
622
|
+
await nvm_1.NVM.createInteractiveCommando(basic_1.Cli_Basic)
|
|
623
|
+
.setUID(pkg.name)
|
|
624
|
+
.cd(pkg.path)
|
|
625
|
+
.append(`ts-node src/main/proxy.ts`)
|
|
626
|
+
.execute();
|
|
627
|
+
await nvm_1.NVM.createInteractiveCommando(basic_1.Cli_Basic)
|
|
628
|
+
.setUID(pkg.name)
|
|
629
|
+
.cd(pkg.path)
|
|
630
|
+
.append(`firebase emulators:start --export-on-exit --import=.trash/data ${runInDebug ? `--inspect-functions ${pkg.envConfig.ssl}` : ''}`)
|
|
625
631
|
.execute();
|
|
632
|
+
return;
|
|
626
633
|
}
|
|
627
634
|
if (pkg.type === 'firebase-hosting-app') {
|
|
628
635
|
runningAppsLogs.registerApp(pkg.name, logClient);
|