Add multi-target build (CJS, ESM, types) and modernise setup
- Split tsconfig into base, cjs, esm, and types configs
- Generate CommonJS output in
build/cjs - Generate ESM output in
build/esm - Generate declaration files only in
build/types - Update package.json entry points:
- main → ./build/cjs/index.js
- module → ./build/esm/index.js
- types → ./build/types/index.d.ts
- added "exports" field for Node/bundler compatibility
- Updated scripts: clean, build, watch
- Migrated devDependencies to modern versions (TS 5, ESLint, Jest 29)
- Fixed tests for correct error messages and TypeScript compatibility
- Added updated README.md with modern usage and badges
What's Changed
- [Release] v1.0.0 by @inakiarroyo in #9
Full Changelog: v0.2.0...v1.0.0