@nu-art/build-and-install 0.204.76 → 0.204.78
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
|
@@ -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 #########################
|
|
@@ -60,7 +60,7 @@ class Unit_FirebaseHostingApp extends core_1.Unit_TypescriptLib {
|
|
|
60
60
|
const envConfig = this.getEnvConfig();
|
|
61
61
|
const fileContent = envConfig.isLocal ? {} : this.config.firebaseConfig.hosting;
|
|
62
62
|
const targetPath = `${this.runtime.pathTo.pkg}/${consts_1.CONST_FirebaseJSON}`;
|
|
63
|
-
await fs_1.promises.writeFile(targetPath, JSON.stringify(fileContent, null, 2), { encoding: 'utf-8' });
|
|
63
|
+
await fs_1.promises.writeFile(targetPath, JSON.stringify({ hosting: fileContent }, null, 2), { encoding: 'utf-8' });
|
|
64
64
|
}
|
|
65
65
|
async resolveHostingRuntimeConfig() {
|
|
66
66
|
var _a;
|