aleclarson / vite-tsconfig-paths

Support for TypeScript's path mapping in Vite
MIT License
1.28k stars 45 forks source link

build: fix package types exposing #9

Closed 0x009922 closed 3 years ago

0x009922 commented 3 years ago

I added the types field into package.json. Without it, the index.d.ts file goes unnoticed.

See this on official TypeScript docs: Including declarations in your npm package.

aleclarson commented 3 years ago

Are you sure? In my project, the types are being found without this change.

0x009922 commented 3 years ago

Hmm, yes, and it works for me now. Nice.