From 6177733589b427ac2da47cf1840d5ad7710e3259 Mon Sep 17 00:00:00 2001 From: Dominic Martinez <33702823+dominicm00@users.noreply.github.com> Date: Mon, 10 May 2021 14:40:52 -0400 Subject: [PATCH 1/2] 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 https://github.com/tailwindlabs/tailwindcss-forms/commit/8a8671b3ec62a7e71ca8477d50e80042ee40f0e6 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 2111e16..84cc9f7 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,9 @@ "scripts": { "prepublishOnly": "node scripts/build.js" }, + "peerDependencies": { + "tailwindcss": "^2.0.0" + }, "devDependencies": { "autoprefixer": "^10.2.0", "clean-css": "^4.2.1", From 9351638448b4ae6cc07fc4f7f4d991c75f02cdd7 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Mon, 24 May 2021 12:36:30 -0400 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 84cc9f7..b9fb758 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "node scripts/build.js" }, "peerDependencies": { - "tailwindcss": "^2.0.0" + "tailwindcss": ">=2.0.0" }, "devDependencies": { "autoprefixer": "^10.2.0",