@onivoro/onix 20.0.1 → 20.0.2
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
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
|
+
const process_1 = require("process");
|
|
5
6
|
const runExecutor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
6
|
-
|
|
7
|
-
const { envKey, envPath } = options;
|
|
7
|
+
const { debugPort, envPath } = options;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
if (envPath) {
|
|
10
|
+
(0, process_1.loadEnvFile)(envPath);
|
|
11
|
+
}
|
|
12
|
+
const inspectStatement = debugPort ? `--port=${debugPort}` : '';
|
|
13
|
+
const command = `npx nx run ${context.projectName}:serve ${inspectStatement}`;
|
|
11
14
|
console.log(command);
|
|
12
15
|
(0, child_process_1.execSync)(command, { stdio: 'inherit' });
|
|
13
16
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/local/executor.ts"],"names":[],"mappings":";;;AAIA,iDAAyC;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/local/executor.ts"],"names":[],"mappings":";;;AAIA,iDAAyC;AAEzC,qCAAsC;AAEtC,MAAM,WAAW,GAAoC,CACnD,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAEvC,IAAI,CAAC;QACH,IAAG,OAAO,EAAE,CAAC;YACX,IAAA,qBAAW,EAAC,OAAO,CAAC,CAAC;QACvB,CAAC;QAED,MAAM,gBAAgB,GAAG,SAAS,CAAC,CAAC,CAAC,UAAU,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,MAAM,OAAO,GAAG,cAAc,OAAO,CAAC,WAAW,UAAU,gBAAgB,EAAE,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAExC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;AACH,CAAC,CAAA,CAAA;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -9,17 +9,12 @@
|
|
|
9
9
|
"type": "string",
|
|
10
10
|
"description": "Path and name of the .env file to load"
|
|
11
11
|
},
|
|
12
|
-
"envKey": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Name of the environment variable that points to the location of the envFile"
|
|
15
|
-
},
|
|
16
12
|
"debugPort": {
|
|
17
13
|
"type": "number",
|
|
18
14
|
"description": "Debug port"
|
|
19
15
|
}
|
|
20
16
|
},
|
|
21
17
|
"required": [
|
|
22
|
-
"envPath"
|
|
23
|
-
"envKey"
|
|
18
|
+
"envPath"
|
|
24
19
|
]
|
|
25
20
|
}
|