Skip to content

Commit

Permalink
chore(misc): fix migration version
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Nov 8, 2022
1 parent 31a82af commit b00f2aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"15.1.0-set-project-names": {
"cli": "nx",
"version": "15.0.0-beta.1",
"version": "15.0.12-beta.1",
"description": "Set project names in project.json files",
"implementation": "./src/migrations/update-15-1-0/set-project-names"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default async function (tree: Tree) {
// This looks like it does nothing, but this will actually effectively migrate over all the configs that need to be moved over, but won't touch configs that don't need to be moved
for (const [projName, projConfig] of getProjects(tree)) {
if (tree.exists(join(projConfig.root, 'project.json'))) {
projConfig.name ??= projName;
updateProjectConfiguration(tree, projName, projConfig);
}
}
Expand Down

0 comments on commit b00f2aa

Please sign in to comment.