Skip to content

Commit

Permalink
fix(core): list only changed files on format:write log (#10155)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed May 6, 2022
1 parent 8cb07be commit e5fd269
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/nx/src/command-line/format.ts
Expand Up @@ -151,9 +151,12 @@ function chunkify(target: string[], size: number): string[][] {

function write(patterns: string[]) {
if (patterns.length > 0) {
execSync(`node "${PRETTIER_PATH}" --write ${patterns.join(' ')}`, {
stdio: [0, 1, 2],
});
execSync(
`node "${PRETTIER_PATH}" --write --list-different ${patterns.join(' ')}`,
{
stdio: [0, 1, 2],
}
);
}
}

Expand Down

1 comment on commit e5fd269

@vercel
Copy link

@vercel vercel bot commented on e5fd269 May 6, 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
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.