Skip to content

Commit

Permalink
fix(devkit): do not move properties when nx.json doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Dec 14, 2022
1 parent 002d7f3 commit a1d7d2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/devkit/src/generators/format-files.ts
Expand Up @@ -95,6 +95,11 @@ function sortWorkspaceJson(tree: Tree) {
* correctly.
*/
function ensurePropertiesAreInNewLocations(tree: Tree) {
// If nx.json doesn't exist then there is no where to move these properties to
if (!tree.exists('nx.json')) {
return;
}

const workspacePath = getWorkspacePath(tree);
if (!workspacePath) {
return;
Expand Down

0 comments on commit a1d7d2f

Please sign in to comment.