Skip to content

Commit 7604082

Browse files
committed
Resolve tailwindcss relative to the file being processed
1 parent c4d2a49 commit 7604082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function getTailwindConfig(options: ParserOptions): Promise<any> {
4040
// We resolve this like we're in `inputDir` for better monorepo support as
4141
// Prettier may be configured at the workspace root but Tailwind CSS is
4242
// installed for a workspace package rather than the entire monorepo
43-
let [mod, pkgDir] = await resolveTailwindPath(options, configDir)
43+
let [mod, pkgDir] = await resolveTailwindPath(options, inputDir)
4444

4545
// Locate the v4 stylesheet relative to the prettier config file
4646
//

0 commit comments

Comments
 (0)