Skip to content

Commit

Permalink
fix(angular): format files after migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Nov 17, 2022
1 parent 4860281 commit b245ae9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
@@ -1,5 +1,5 @@
import type { Tree } from '@nrwl/devkit';
import { getProjects, updateJson } from '@nrwl/devkit';
import { formatFiles, getProjects, updateJson } from '@nrwl/devkit';
import { Builders } from '@schematics/angular/utility/workspace-models';

function updateTarget(tree: Tree, tsconfigPath: string) {
Expand Down Expand Up @@ -50,4 +50,6 @@ export default async function updateTypescriptTarget(tree: Tree) {
}
}
}

await formatFiles(tree);
}
@@ -1,8 +1,12 @@
import type { Tree } from '@nrwl/devkit';
import { getProjects, updateProjectConfiguration } from '@nrwl/devkit';
import {
formatFiles,
getProjects,
updateProjectConfiguration,
} from '@nrwl/devkit';
import { Builders } from '@schematics/angular/utility/workspace-models';

export default function updateWorkspaceConfigurations(tree: Tree) {
export default async function updateWorkspaceConfigurations(tree: Tree) {
const projects = getProjects(tree);

const supportedExecutors: Set<string> = new Set([Builders.Server]);
Expand All @@ -25,4 +29,6 @@ export default function updateWorkspaceConfigurations(tree: Tree) {
updateProjectConfiguration(tree, name, project);
}
}

await formatFiles(tree);
}

0 comments on commit b245ae9

Please sign in to comment.