diff --git a/packages/cli/src/dirCommand.ts b/packages/cli/src/dirCommand.ts index 32da6a5e..a7db6c4c 100644 --- a/packages/cli/src/dirCommand.ts +++ b/packages/cli/src/dirCommand.ts @@ -100,9 +100,8 @@ export const dirCommand: SvgrCommand = async ( const prettierRcConfig = opts.runtimeConfig ? await resolveConfig(filepath, { editorconfig: true }) : {} - const prettierFileInfo = await getFileInfo(filepath) return format(fileContent, { - parser: prettierFileInfo.inferredParser, + filepath, ...prettierRcConfig, ...opts.prettierConfig, })