managarten/packages/shared-tailwind/package.json
Till JS a524997a2f refactor(tailwind): centralize @source list in @mana/shared-tailwind/sources.css
Each consuming app was duplicating eight @source directives with hand-
counted relative paths (../../../../../packages/…). The mana web app's
were off-by-one for months before anyone noticed, silently disabling the
scan for every shared-ui file.

Tailwind v4 resolves @source paths relative to the CSS file that declares
them, so we can drop the list once into packages/shared-tailwind/src/
sources.css. Consumer apps now just add one more @import next to themes.css:

  @import "tailwindcss";
  @import "@mana/shared-tailwind/themes.css";
  @import "@mana/shared-tailwind/sources.css";

New package.json export: "./sources.css". Drop the local paths from the
mana web app's app.css.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 00:59:33 +02:00

19 lines
357 B
JSON

{
"name": "@mana/shared-tailwind",
"version": "1.0.0",
"private": true,
"type": "module",
"exports": {
"./themes.css": "./src/themes.css",
"./sources.css": "./src/sources.css"
},
"scripts": {
"lint": "eslint ."
},
"peerDependencies": {
"tailwindcss": "^3.0.0 || ^4.0.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.19"
}
}