Two independent fixes: 1. Alert titles used text-<severity> directly on a bg-<severity>/15 tinted background. For danger (a very dark base hue) this reads as near-invisible text-on-tinted-background. The original PrimeVue-era Message design kept body/title text neutral and only accented the icon/left-border with the severity color -- restore that: alert text stays text-foreground, severity shows via a border-l-4 accent stripe instead of tinted text. 2. Root-caused why none of the last several fixes were showing up without a full `bun run build`: @nychthemeron/library's package.json exports its "." entry as ./dist/index.js unconditionally, and every story imports from the bare package specifier. So Storybook's dev server was always resolving to whatever the dist bundle looked like at last build time, never live source -- editing packages/library/src and restarting `bun run dev` (even with caches cleared) never picked up changes. Vite auto-injects a "development" resolution condition during `vite dev`/serve (and "production" during build), which is the standard fix for exactly this monorepo dev-vs-published split: added a "development" condition to the "." export pointing at src/index.ts, matching the pattern the "./components" sub-export already used. Also added the matching "@" alias to packages/playground/vite.config.ts, since resolving straight to library source pulls in its "@/lib/utils"-style internal imports, which playground's own Vite instance didn't previously know how to resolve. Verified both paths: dev server now reflects source edits without a library rebuild, and `bun run build` still produces a correct dist bundle with the same fix baked in. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
57 lines
1.3 KiB
JSON
57 lines
1.3 KiB
JSON
{
|
|
"name": "@nychthemeron/library",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"development": "./src/index.ts",
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/src/index.d.ts"
|
|
},
|
|
"./components": {
|
|
"import": "./src/components/index.ts",
|
|
"types": "./src/index.d.ts"
|
|
},
|
|
"./style": {
|
|
"import": "./src/assets/css/tailwind.css",
|
|
"types": "./src/index.d.ts"
|
|
},
|
|
"./theme": {
|
|
"import": "./src/assets/css/tailwind.css",
|
|
"types": "./src/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src/assets",
|
|
"src/components"
|
|
],
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test:unit": "vitest run",
|
|
"test:unit:watch": "vitest"
|
|
},
|
|
"peerDependencies": {
|
|
"vue": "^3.5.0",
|
|
"reka-ui": "^2.10.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vitest/coverage-v8": "^2.0.0",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"vite-plugin-dts": "^5.0.2"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource/cinzel": "^5.2.8",
|
|
"@fontsource/ibm-plex-mono": "^5.2.7",
|
|
"@fontsource/ibm-plex-sans": "^5.2.8",
|
|
"@lucide/vue": "^1.24.0",
|
|
"@tailwindcss/vite": "^4.3.2",
|
|
"@vueuse/core": "^14.3.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"shadcn-vue": "^2.7.4",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tailwindcss": "^4.3.2",
|
|
"tw-animate-css": "^1.4.0"
|
|
}
|
|
}
|