@nu-art/build-and-install 0.204.76 → 0.204.77

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.76",
3
+ "version": "0.204.77",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "TacB0sS",
@@ -167,8 +167,17 @@ class PhaseRunner extends core_1.BaseUnit {
167
167
  const projectDefaultFileRoutes = RunnerParams_1.MemKey_ProjectConfig.get().defaultFileRoutes;
168
168
  return (0, ts_common_1.merge)(defaultFileRoutes, projectDefaultFileRoutes);
169
169
  }
170
- buildUnitDependencyTree() {
170
+ async buildUnitDependencyTree() {
171
171
  const units = [...this.units];
172
+ // Filter out units by their filter
173
+ for (const unit of units) {
174
+ if ((0, ts_common_1.exists)(unit.config.filter) && !(await unit.config.filter())) {
175
+ (0, ts_common_1.removeItemFromArray)(units, unit);
176
+ // @ts-ignore
177
+ unit.setStatus('Will not run');
178
+ unit.logInfo('unit will not run, did not pass unit filter');
179
+ }
180
+ }
172
181
  const allDependencies = units.map(unit => unit.runtime.dependencyName);
173
182
  const resolvedUnitNames = [];
174
183
  const dependencyTree = [];
@@ -378,7 +387,7 @@ class PhaseRunner extends core_1.BaseUnit {
378
387
  async execute() {
379
388
  return new MemStorage_1.MemStorage().init(async () => {
380
389
  await this.init();
381
- this.buildUnitDependencyTree();
390
+ await this.buildUnitDependencyTree();
382
391
  await this.executeImpl();
383
392
  });
384
393
  }
@@ -15,7 +15,6 @@ class Unit_Python extends BaseUnit_1.BaseUnit {
15
15
  this.runtime.pathTo = {
16
16
  pkg: (0, tools_1.convertToFullPath)(this.config.pathToPackage),
17
17
  };
18
- this.logWarning(`Python Path ${this.runtime.pathTo.pkg}`);
19
18
  await this.initCommando();
20
19
  }
21
20
  //######################### Internal Logic #########################