Skip to content

v1.3.0

Choose a tag to compare

@chtitux chtitux released this 18 Feb 20:28
· 16 commits to main since this release

Fix broken ESM build

Node.js ESM requires explicit .js extensions on relative imports. v1.2.0 shipped with extensionless imports because tsconfig.build.json used moduleResolution: "bundler".

Changes

  • Switch tsconfig.build.json to module: "NodeNext" / moduleResolution: "NodeNext"
  • Add .js extensions to all 140+ relative imports in src/
  • Add moduleNameMapper to jest.config.cjs so ts-jest resolves .js imports in CJS test mode