@nu-art/build-and-install 0.400.13 → 0.400.14
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/build-and-install",
|
|
3
|
-
"version": "0.400.
|
|
3
|
+
"version": "0.400.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"chokidar": "^3.6.0",
|
|
34
|
-
"@nu-art/ts-common": "0.400.
|
|
35
|
-
"@nu-art/commando": "0.400.
|
|
34
|
+
"@nu-art/ts-common": "0.400.14",
|
|
35
|
+
"@nu-art/commando": "0.400.14"
|
|
36
36
|
},
|
|
37
37
|
"unitConfig": {
|
|
38
38
|
"type": "typescript-lib"
|
|
@@ -280,16 +280,19 @@ export class Unit_FirebaseFunctionsApp extends Unit_TypescriptLib {
|
|
|
280
280
|
this.logWarning('PROXY TERMINATED');
|
|
281
281
|
}
|
|
282
282
|
async runEmulator() {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
283
|
+
let exportGoogleCredentials;
|
|
284
|
+
if (this.config.envConfig.identityAccount) {
|
|
285
|
+
const pathToIdentityAccount = resolve(this.config.fullPath, this.config.envConfig.identityAccount);
|
|
286
|
+
if (!FileSystemUtils.file.exists(pathToIdentityAccount))
|
|
287
|
+
throw new ImplementationMissingException(`Missing identity file at: ${pathToIdentityAccount}`);
|
|
288
|
+
exportGoogleCredentials = `export GOOGLE_APPLICATION_CREDENTIALS="${pathToIdentityAccount}"`;
|
|
289
|
+
}
|
|
288
290
|
const commando = this.allocateCommando(Commando_NVM).applyNVM()
|
|
289
291
|
.setUID(this.config.key)
|
|
290
|
-
.cd(this.config.fullPath)
|
|
291
|
-
|
|
292
|
-
.
|
|
292
|
+
.cd(this.config.fullPath);
|
|
293
|
+
if (exportGoogleCredentials)
|
|
294
|
+
commando.append(exportGoogleCredentials);
|
|
295
|
+
commando.setLogLevelFilter((log, type) => {
|
|
293
296
|
if (this.emulatorLogStrings.error.some(errStr => log.includes(errStr)))
|
|
294
297
|
return LogLevel.Error;
|
|
295
298
|
if (this.emulatorLogStrings.warning.some(warnStr => log.includes(warnStr)))
|