Skip to content

Commit

Permalink
fix(core): fix outputs migration (#10575)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Jun 3, 2022
1 parent 8b12832 commit 41882bf
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -3,11 +3,15 @@ import {
getProjects,
updateProjectConfiguration,
} from '../../generators/utils/project-configuration';
import { isRelativePath } from 'nx/src/utils/fileutils';
import { joinPathFragments } from 'nx/src/utils/path';
import { isRelativePath } from '../../utils/fileutils';
import { joinPathFragments } from '../../utils/path';
import { formatChangedFilesWithPrettierIfAvailable } from '../../generators/internal-utils/format-changed-files-with-prettier-if-available';

export default async function (tree: Tree) {
for (const [name, value] of getProjects(tree).entries()) {
if (!value.targets) {
continue;
}
for (const t of Object.values(value.targets)) {
if (t.outputs) {
t.outputs = t.outputs.map((o) =>
Expand All @@ -17,4 +21,5 @@ export default async function (tree: Tree) {
}
updateProjectConfiguration(tree, name, value);
}
await formatChangedFilesWithPrettierIfAvailable(tree);
}

1 comment on commit 41882bf

@vercel
Copy link

@vercel vercel bot commented on 41882bf Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.