Skip to content

Commit 3bce6d4

Browse files
committed
refactor(@angular/cli): remove relative path conversion when adding files to format
Path are already relative.
1 parent 30bd75c commit 3bce6d4

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { execFile } from 'node:child_process';
1010
import { readFile } from 'node:fs/promises';
1111
import { createRequire } from 'node:module';
1212
import { platform } from 'node:os';
13-
import { dirname, extname, join, relative } from 'node:path';
13+
import { dirname, extname, join } from 'node:path';
1414
import { promisify } from 'node:util';
1515

1616
const execFileAsync = promisify(execFile);
@@ -62,7 +62,7 @@ export async function formatFiles(cwd: string, files: Set<string>): Promise<void
6262
const filesToFormat: string[] = [];
6363
for (const file of files) {
6464
if (fileTypes.has(extname(file))) {
65-
filesToFormat.push(relative(cwd, file));
65+
filesToFormat.push(file);
6666
}
6767
}
6868

0 commit comments

Comments
 (0)