From e5fd2695119aa4bd26c09ac78a1d2449e5af0346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Jona=C5=A1?= Date: Fri, 6 May 2022 23:10:18 +0200 Subject: [PATCH] fix(core): list only changed files on format:write log (#10155) --- packages/nx/src/command-line/format.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/nx/src/command-line/format.ts b/packages/nx/src/command-line/format.ts index d631e4783fca6..3f9177edb124c 100644 --- a/packages/nx/src/command-line/format.ts +++ b/packages/nx/src/command-line/format.ts @@ -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], + } + ); } }