Skip to content

Commit ec386cf

Browse files
committed
wip!
1 parent e7412dd commit ec386cf

File tree

1 file changed

+4
-2
lines changed
  • packages/angular/cli/src/command-builder/utilities

1 file changed

+4
-2
lines changed

packages/angular/cli/src/command-builder/utilities/prettier.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function formatFiles(cwd: string, files: Set<string>): Promise<void
6363
const filesToFormat: string[] = [];
6464
for (const file of files) {
6565
if (fileTypes.has(extname(file))) {
66-
filesToFormat.push(file);
66+
filesToFormat.push(`"${file}"`);
6767
}
6868
}
6969

@@ -73,8 +73,10 @@ export async function formatFiles(cwd: string, files: Set<string>): Promise<void
7373

7474
console.log({ filesToFormat, cwd });
7575

76-
await execFileAsync(prettierCliPath, ['--write', ...filesToFormat], {
76+
const x = await execFileAsync(prettierCliPath, ['--write', ...filesToFormat], {
7777
cwd,
7878
shell: platform() === 'win32',
7979
});
80+
81+
console.log({ x });
8082
}

0 commit comments

Comments
 (0)