Skip to content

v0.10.1

Choose a tag to compare

@github-actions github-actions released this 17 Apr 00:36
· 128 commits to main since this release
7dad1b6

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