fix: remove "type": "module" from package.json

Node.js treats dist/index.js as ESM due to "type": "module",
but the bundle uses CJS require() calls. Remove the field so
Node.js defaults to CJS for .js files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Zoltan Kochan
2026-03-16 01:55:56 +01:00
parent ab0b84aeb1
commit 24a61aa18d
2 changed files with 2 additions and 3 deletions

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,5 @@
{
"private": true,
"type": "module",
"packageManager": "pnpm@10.32.1",
"scripts": {
"build:bundle": "esbuild src/index.ts --bundle --platform=node --target=node24 --format=cjs --minify --outfile=dist/index.js --loader:.json=json",