Skip to content

Commit 7d77804

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 This pull request is identical to tailwindlabs/tailwindcss-line-clamp#6. Both other official plugins (forms, typography) already correctly use peer dependencies.
1 parent 835eb1f commit 7d77804

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
@@ -15,6 +15,9 @@
1515
},
1616
"scripts": {
1717
"prepublishOnly": "node scripts/build.js"
18+
},
19+
"peerDependencies": {
20+
"tailwindcss": "^2.0.0"
1821
},
1922
"devDependencies": {
2023
"autoprefixer": "10",

0 commit comments

Comments
 (0)