Add library build pipeline and token alignment report

- Configure Vite library mode to export MUI theme as plain JS
- Add tsconfig.build.json for declaration generation
- Add package.json exports for theme, Tailwind config, and tokens
- Create src/index.ts as library entry point
- Document token alignment between design system and production
  including colour mapping, flagged conflicts, and breakpoint alignment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 13:32:45 +10:00
parent f18e2ed2e4
commit 1baa55c417
5 changed files with 151 additions and 1 deletions

View File

@@ -4,9 +4,32 @@
"private": true,
"type": "module",
"description": "Funeral Arranger Design System — React 19 + MUI v7 + Storybook 9 + Tailwind v3",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./theme": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./tailwind-config": "./tailwind.config.js",
"./tailwind-tokens": "./src/theme/generated/tailwind-tokens.js",
"./tokens.css": "./src/theme/generated/tokens.css"
},
"files": [
"dist",
"tailwind.config.js",
"src/theme/generated/tailwind-tokens.js",
"src/theme/generated/tokens.css"
],
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc --noEmit && vite build",
"build:lib": "vite build && tsc -p tsconfig.build.json",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build:storybook": "storybook build",