@nu-art/build-and-install 0.204.86 → 0.204.87

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.204.86",
3
+ "version": "0.204.87",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "TacB0sS",
@@ -133,7 +133,7 @@ exports.phase_DeployFrontend = {
133
133
  name: 'Deploy Frontend',
134
134
  method: 'deployFrontend',
135
135
  filter: () => !!params_1.RuntimeParams.deployFrontend,
136
- dependencyPhaseKeys: [exports.phaseKey_Lint, exports.phaseKey_Compile],
136
+ dependencyPhaseKeys: [exports.phaseKey_Compile],
137
137
  };
138
138
  exports.phaseKey_DeployBackend = 'deploy-backend';
139
139
  exports.phase_DeployBackend = {
@@ -141,6 +141,6 @@ exports.phase_DeployBackend = {
141
141
  name: 'Deploy Backend',
142
142
  method: 'deployBackend',
143
143
  filter: () => !!params_1.RuntimeParams.deployBackend,
144
- dependencyPhaseKeys: [exports.phaseKey_Lint, exports.phaseKey_Compile],
144
+ dependencyPhaseKeys: [exports.phaseKey_Compile],
145
145
  };
146
146
  exports.phases_Deploy = [exports.phase_DeployFrontend, exports.phase_DeployBackend];
@@ -36,19 +36,12 @@ class BAIScreenManager {
36
36
  return this.screens.find(screenOption => {
37
37
  if (screenOption.conditions.condition && !screenOption.conditions.condition())
38
38
  return false;
39
- //Fail fast if current phase is on or past the stopOnPhase
40
- if (screenOption.conditions.stopOnPhase) {
41
- const index = phases.indexOf(screenOption.conditions.stopOnPhase);
42
- if (currentPhaseIndex >= index)
43
- return false;
44
- }
39
+ const startPhaseIndex = screenOption.conditions.startOnPhase ? phases.indexOf(screenOption.conditions.startOnPhase) : phases.length;
40
+ const stopPhaseIndex = screenOption.conditions.stopOnPhase ? phases.indexOf(screenOption.conditions.stopOnPhase) : phases.length;
45
41
  //Fail fast if current phase is before the startOnPhase
46
- if (screenOption.conditions.startOnPhase) {
47
- const index = phases.indexOf(screenOption.conditions.startOnPhase);
48
- if (currentPhaseIndex < index)
49
- return false;
50
- }
51
- return true;
42
+ if (currentPhaseIndex >= startPhaseIndex && currentPhaseIndex < stopPhaseIndex)
43
+ return true;
44
+ return false;
52
45
  });
53
46
  }
54
47
  reAssignScreen() {