Repository navigation
v0.10.1
Changes in v0.10.1
Fixes #65 — published package was missing usable type declarations.
Root Cause
vite-plugin-dts was emitting declaration files to dist/src/index.d.ts while Rollup (via preserveModulesRoot: 'src') was emitting JS to dist/index.js. The path mismatch meant package.json's "types": "./dist/index.d.ts" pointed to a file that didn't exist.
Fix
Added entryRoot: 'src' to the vite-plugin-dts config so it strips the src/ prefix from output paths, matching Rollup's behavior.
Also prefixed the unused labelPosition destructure in SwitchField with underscore to suppress the TS6133 error during declaration generation.
See CHANGELOG for details.
Installation
npm install @pglevy/sailwind@v0.10.1