Skip to content

Commit

Permalink
fix(devkit): add missing parameter to prettier getFileInfo (#9577)
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan CALVI <jordan.calvi.external@atos.net>
  • Loading branch information
danjor and Jordan CALVI committed Mar 29, 2022
1 parent e3251d2 commit c2c3cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devkit/src/generators/format-files.ts
Expand Up @@ -32,7 +32,7 @@ export async function formatFiles(tree: Tree): Promise<void> {
await Promise.all(
Array.from(files).map(async (file) => {
const systemPath = path.join(tree.root, file.path);
let options: Prettier.Options = {
let options: any = {
filepath: systemPath,
};

Expand All @@ -47,7 +47,7 @@ export async function formatFiles(tree: Tree): Promise<void> {
...resolvedOptions,
};

const support = await prettier.getFileInfo(systemPath);
const support = await prettier.getFileInfo(systemPath, options);
if (support.ignored || !support.inferredParser) {
return;
}
Expand Down

0 comments on commit c2c3cf5

Please sign in to comment.