@nrwl/workspace
Advanced tools
Comparing version 9.0.0-beta.4 to 9.0.0-beta.5
{ | ||
"name": "@nrwl/workspace", | ||
"version": "9.0.0-beta.4", | ||
"version": "9.0.0-beta.5", | ||
"description": "Extensible Dev Tools for Monorepos", | ||
@@ -68,4 +68,4 @@ "repository": { | ||
"chalk": "2.4.2", | ||
"@nrwl/cli": "9.0.0-beta.4" | ||
"@nrwl/cli": "9.0.0-beta.5" | ||
} | ||
} |
@@ -37,2 +37,16 @@ { | ||
"default": false | ||
}, | ||
"outputPath": { | ||
"description": "Tells Nx where the files will be created", | ||
"oneOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
] | ||
} | ||
@@ -39,0 +53,0 @@ }, |
@@ -9,6 +9,9 @@ "use strict"; | ||
Object.keys(json.projects).forEach(proj => { | ||
if (proj.endsWith('-e2e') && json.projects[proj.replace(/-e2e$/, '')]) { | ||
const implicitE2eName = proj.replace(/-e2e$/, ''); | ||
if (proj.endsWith('-e2e') && json.projects[implicitE2eName]) { | ||
json.projects[proj].implicitDependencies = | ||
json.projects[proj].implicitDependencies || []; | ||
json.projects[proj].implicitDependencies.push(proj.replace(/-e2e$/, '')); | ||
if (!json.projects[proj].implicitDependencies.includes(implicitE2eName)) { | ||
json.projects[proj].implicitDependencies.push(implicitE2eName); | ||
} | ||
} | ||
@@ -15,0 +18,0 @@ }); |
@@ -45,2 +45,17 @@ "use strict"; | ||
})); | ||
it('should not add duplicate implicit dependencies for e2e projects', () => __awaiter(void 0, void 0, void 0, function* () { | ||
tree = yield testing_1.callRule(ast_utils_1.updateJsonInTree('nx.json', json => { | ||
json.projects['my-app-e2e'].implicitDependencies = ['my-app']; | ||
return json; | ||
}), tree); | ||
const result = yield testing_1.runMigration('add-implicit-e2e-deps', {}, tree); | ||
const nxJson = ast_utils_1.readJsonInTree(result, 'nx.json'); | ||
expect(nxJson.projects['my-app-e2e']).toEqual({ | ||
tags: [], | ||
implicitDependencies: ['my-app'] | ||
}); | ||
expect(nxJson.projects['my-non-existent-app-e2e']).toEqual({ | ||
tags: [] | ||
}); | ||
})); | ||
}); |
@@ -116,2 +116,5 @@ "use strict"; | ||
env.NX_TERMINAL_OUTPUT_PATH = outputPath; | ||
if (this.options.captureStderr) { | ||
env.NX_TERMINAL_CAPTURE_STDERR = 'true'; | ||
} | ||
} | ||
@@ -118,0 +121,0 @@ const p = child_process_1.fork(this.getCommand(), this.getCommandArgs(task), { |
@@ -17,4 +17,5 @@ import { Task, TasksRunner } from './tasks-runner'; | ||
lifeCycle?: LifeCycle; | ||
captureStderr?: boolean; | ||
} | ||
export declare const tasksRunnerV2: TasksRunner<DefaultTasksRunnerOptions>; | ||
export default tasksRunnerV2; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.nxVersion = '9.0.0-beta.4'; | ||
exports.nxVersion = '9.0.0-beta.5'; | ||
exports.angularCliVersion = '9.0.0-rc.12'; | ||
@@ -5,0 +5,0 @@ exports.typescriptVersion = '~3.7.4'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
653298
15941
+ Added@nrwl/cli@9.0.0-beta.5(transitive)
+ Added@nrwl/tao@9.0.0-beta.5(transitive)
- Removed@nrwl/cli@9.0.0-beta.4(transitive)
- Removed@nrwl/tao@9.0.0-beta.4(transitive)
Updated@nrwl/cli@9.0.0-beta.5