Skip to content

Commit

Permalink
mark tailwindcss as a peer dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dominicm00 authored May 11, 2021
1 parent 835eb1f commit 7d77804
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
},
"scripts": {
"prepublishOnly": "node scripts/build.js"
},
"peerDependencies": {
"tailwindcss": "^2.0.0"
},
"devDependencies": {
"autoprefixer": "10",
Expand Down

0 comments on commit 7d77804

Please sign in to comment.