Skip to content

Commit 6177733

Browse files
authored
mark tailwindcss as a peer dependency
This plugin uses tailwindcss internally, but marks it only as a dev dependency rather than a peer dependency, causing errors/undefined behavior in monorepos and Yarn PNP. Correctly adding tailwind as a peer dependency allows for correct resolution to occur while still referencing the *user's* tailwind and not an internal version. Other official plugins have already corrected this: see tailwindlabs/tailwindcss-forms@8a8671b
1 parent e0d2cbc commit 6177733

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"scripts": {
1717
"prepublishOnly": "node scripts/build.js"
1818
},
19+
"peerDependencies": {
20+
"tailwindcss": "^2.0.0"
21+
},
1922
"devDependencies": {
2023
"autoprefixer": "^10.2.0",
2124
"clean-css": "^4.2.1",

0 commit comments

Comments
 (0)