Fix npm package configuration
- Add declaration and declarationMap to generate .d.ts files
- Exclude test files from TypeScript compilation (vitest handles them)
- Ensures types field in package.json works correctly
- Removes test files from npm tarball