Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.

Commit 0d1ee0b

Browse files
committed
🐛 fix: add tailwind.config.cjs heuristic
1 parent d43b99a commit 0d1ee0b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

__detect.js

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ export const heuristics = [
1515
return text.includes("tailwindcss");
1616
},
1717
},
18+
{
19+
description: "`tailwind.config.cjs` exists and `tailwind.config.js` does not exist",
20+
async detector({ readFile }) {
21+
const cjs = await readFile({ path: "/tailwind.config.cjs" });
22+
const js = await readFile({ path: "/tailwind.config.js" });
23+
24+
return cjs.exists && !js.exists;
25+
},
26+
},
1827
{
1928
description: `\`@tailwind\` directives are used in \`src/app.${extension}\``,
2029
async detector({ readFile }) {

0 commit comments

Comments
 (0)