Skip to content

Commit

Permalink
fix(core): list only changed files on format:write log
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed May 5, 2022
1 parent 899e0ca commit 61d124f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/nx/src/command-line/format.ts
Original file line number Diff line number Diff line change
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

0 comments on commit 61d124f

Please sign in to comment.