fix(core): fix the add-target-dependencies migration to remove the old property
This commit is contained in:
parent
8a7b6c8405
commit
ac871d93b5
@ -173,7 +173,8 @@
|
||||
"add-target-dependencies": {
|
||||
"version": "12.5.0-beta.1",
|
||||
"description": "Rename the workspace-schematic script into workspace-generator script",
|
||||
"factory": "./src/migrations/update-12-5-0/add-target-dependencies"
|
||||
"factory": "./src/migrations/update-12-5-0/add-target-dependencies",
|
||||
"cli": "nx"
|
||||
}
|
||||
},
|
||||
"packageJsonUpdates": {
|
||||
|
||||
@ -10,6 +10,7 @@ export async function setTargetDependencies(host: Tree) {
|
||||
const config = readWorkspaceConfiguration(host);
|
||||
const strictlyOrderedTargets = config.tasksRunnerOptions['default'].options
|
||||
.strictlyOrderedTargets || ['build'];
|
||||
delete config.tasksRunnerOptions['default'].options.strictlyOrderedTargets;
|
||||
config.targetDependencies = config.targetDependencies ?? {};
|
||||
|
||||
const updatedStrictlyOrderedTargets = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user