@nu-art/build-and-install 0.204.101 → 0.204.103
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
|
@@ -215,10 +215,15 @@ class PhaseRunner extends core_1.BaseUnit {
|
|
|
215
215
|
}
|
|
216
216
|
async executeImpl() {
|
|
217
217
|
for (const phase of this.phases) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
try {
|
|
219
|
+
const phaseDidRun = await this.executePhase(phase);
|
|
220
|
+
//If phase is terminating
|
|
221
|
+
if (phaseDidRun && phase.terminateAfterPhase)
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
catch (e) {
|
|
225
|
+
this.logError(`Error running phase: ${phase.name}`, e);
|
|
226
|
+
}
|
|
222
227
|
}
|
|
223
228
|
this.killed = false;
|
|
224
229
|
}
|
|
@@ -69,7 +69,7 @@ class Unit_TypescriptLib extends Unit_Typescript_1.Unit_Typescript {
|
|
|
69
69
|
if (this.config.customTSConfig) {
|
|
70
70
|
//If ts config file does not exist in the main folder
|
|
71
71
|
if (!fs.existsSync(pathToUnitTSConfig))
|
|
72
|
-
throw new ts_common_1.BadImplementationException(`Unit ${this.config.label} is set to use a custom tsconfig but is missing a tsconfig.json file in /src/main`);
|
|
72
|
+
throw new ts_common_1.BadImplementationException(`Unit "${this.config.label}" is set to use a custom tsconfig but is missing a tsconfig.json file in /src/main`);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
//Copy project ts config file into the unit main folder
|
|
@@ -187,7 +187,8 @@ class Unit_TypescriptLib extends Unit_Typescript_1.Unit_Typescript {
|
|
|
187
187
|
}
|
|
188
188
|
catch (e) {
|
|
189
189
|
this.setErrorStatus('Compilation Error', e);
|
|
190
|
-
|
|
190
|
+
if (!params_1.RuntimeParams.watch)
|
|
191
|
+
throw e;
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
async purge() {
|