chore: fix running dist package in nodejs

So we have to add ".js" to the import name...
This commit is contained in:
2025-04-13 13:29:36 +07:00
parent 358fe53be9
commit 6cf4096064
5 changed files with 15 additions and 8 deletions

View File

@ -8,7 +8,7 @@
"dev-bun": "bun ./src/index.ts",
"start": "node ./dist/index.js",
"start-bun": "bun ./dist/index.js",
"build": "swc ./src -d dist"
"build": "swc ./src -d dist --strip-leading-paths"
},
"devDependencies": {
"@swc-node/register": "^1.10.10",