Skip to content

Commit

Permalink
fix(fs): prettierrc resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Nov 4, 2024
1 parent b0c581f commit 1752e13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/fs/src/FileDatabase.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import path from 'node:path';

import { resolveConfig, type Options as PrettierOptions } from 'prettier';

import type { AggregatedRepository } from './repositories';
Expand Down Expand Up @@ -34,7 +36,7 @@ export class FileDatabase implements AggregatedRepository {
}

static async create(config: FileDatabaseConfig): Promise<FileDatabase> {
const prettierConfig = await resolveConfig(config.rootDirectory);
const prettierConfig = await resolveConfig(path.join(config.rootDirectory, 'file.xml'));

return new FileDatabase({
...config,
Expand Down

0 comments on commit 1752e13

Please sign in to comment.