Repository navigation
Patch release. Strips MSW-related artifacts that were leaking into the published npm tarball since at least 0.2.0.
Removed from the published tarball
dist/mocks/{browser,data,handlers,search,server}.d.tsdist/mockServiceWorker.js(~9 kB)
Why it was happening
vite-plugin-dtswalked all ofsrc/without an exclude forsrc/mocks/**, so it emitted.d.tsshells for the demo-only MSW handlers. Those shells reference types frommsw(a devDependency), which would type-error in any consumer that touched them.- Vite's default
publicDircopies the rootpublic/into the build output. The lib build has no public assets to ship —publicDir: falseopts out.
A defensive postbuild rm step also removes those paths in case either upstream regresses.
Verification
npm pack --dry-run — files 84 → 73, no mock* paths remain. grid.js / grid.umd.cjs runtime output is unchanged (mocks were never imported from src/index.ts, so the bundle was already free of them — only the .d.ts and worker file shipped as dead weight).
No API changes.