@bafsllc/node
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@bafsllc/node", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "generators": "./generators.json", |
import { ExecutorContext } from "@nrwl/devkit"; | ||
export declare function resolveAllProjectFileReplacements(context: ExecutorContext): any; | ||
export declare function resolveAllProjectFileReplacements(context: ExecutorContext): any[]; |
@@ -5,8 +5,8 @@ "use strict"; | ||
function resolveAllProjectFileReplacements(context) { | ||
const projects = Object.values(context); | ||
const projects = Object.values(context.workspace.projects); | ||
const fileReplacements = projects.reduce((allReplacements, project) => { | ||
var _a, _b, _c; | ||
const projectReplacements = (_c = (_b = (_a = project === null || project === void 0 ? void 0 : project.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.configurations) === null || _c === void 0 ? void 0 : _c[context.configurationName]; | ||
if (projectReplacements) { | ||
allReplacements.push(...projectReplacements); | ||
const projectFileReplacements = (_c = (_b = (_a = project === null || project === void 0 ? void 0 : project.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.configurations) === null || _c === void 0 ? void 0 : _c[context.configurationName].fileReplacements; | ||
if (projectFileReplacements) { | ||
allReplacements.push(...projectFileReplacements); | ||
} | ||
@@ -13,0 +13,0 @@ return allReplacements; |
Sorry, the diff of this file is not supported yet
11114