From a1772d97178fca9e2d641635e2b529ef9eaf672b Mon Sep 17 00:00:00 2001 From: bowenliang123 Date: Mon, 12 Oct 2026 13:57:21 +0800 Subject: [PATCH] chore(build): drop redundant tailwindcss direct dependency @tailwindcss/node already depends on tailwindcss at the same exact version (4.3.3), so a top-level entry would only risk a second copy resolving in the build process. The one-copy pin the native-binding rule requires is now held solely by @tailwindcss/node's exact dependency; update the tailwind.css comment to match. --- package.json | 1 - pnpm-lock.yaml | 3 --- src/client/styles/tailwind.css | 7 ++++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index cdbf748..bb93820 100644 --- a/package.json +++ b/package.json @@ -149,7 +149,6 @@ "react-dom": "^18.3.1", "shiki": "^4.3.1", "simple-icons": "16.32.0", - "tailwindcss": "4.3.3", "tsdown": "^0.23.0", "typescript": "^7.0.2", "vitest": "^4.1.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 08928cf..395f3d4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -141,9 +141,6 @@ importers: simple-icons: specifier: 16.32.0 version: 16.32.0 - tailwindcss: - specifier: 4.3.3 - version: 4.3.3 tsdown: specifier: ^0.23.0 version: 0.23.0(typescript@7.0.2) diff --git a/src/client/styles/tailwind.css b/src/client/styles/tailwind.css index ef0d9bd..a9e0047 100644 --- a/src/client/styles/tailwind.css +++ b/src/client/styles/tailwind.css @@ -14,9 +14,10 @@ * - dsh styles itself through CSS modules and `--ds-*`/`--dsw-*` tokens, so generic names like * `flex`/`gap-2` cannot collide; the flat `lc-*` namespace is the plugin's own chrome. * - * tailwindcss / @tailwindcss/node / @tailwindcss/oxide are pinned to one exact version (as is - * lightningcss): the config process loads this compiler alongside lightningcss's native binding, and - * two copies of any native set in that realm break the napi calls. + * @tailwindcss/node / @tailwindcss/oxide are pinned to one exact version (as is lightningcss): the + * config process loads this compiler alongside lightningcss's native binding, and two copies of any + * native set in that realm break the napi calls. `tailwindcss` itself is not a direct dependency — + * @tailwindcss/node pulls it at that same exact version, so the pin holds with no second entry. */ @theme static { --spacing: 4px;