Skip to content

Typing

Choose a tag to compare

@eoussama eoussama released this 28 Jun 16:22
· 3 commits to main since this release

Bug Fixes

  • Fix missing type declarations in published package — previous releases only included firemitt.es.js in dist/. This was caused by "noEmit": true in tsconfig.json (required by allowImportingTsExtensions) blocking vite-plugin-dts from emitting .d.ts files.

Changes

  • Added tsconfig.build.json — a build-only TypeScript config that extends the main tsconfig.json with emit-compatible overrides (noEmit: false, declaration: true, emitDeclarationOnly: true).
  • Updated vite.config.js to point vite-plugin-dts at tsconfig.build.json, ensuring dist/index.d.ts and all declaration files are generated on every build.

The "types": "./dist/index.d.ts" export condition in package.json now resolves correctly for consumers.

Full Changelog: 0.1.6...0.1.7