fix(api): bundle with tsup to resolve ESM shared module execution

This commit is contained in:
AyrisAI
2026-08-20 02:16:07 +03:00
parent bace019314
commit e56f92bf56
4 changed files with 744 additions and 9 deletions
+3 -2
View File
@@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"dev": "tsx watch --env-file=.env src/index.ts",
"build": "tsc -p tsconfig.json",
"start": "node --env-file=.env dist/index.js",
"build": "tsup",
"start": "node dist/index.js",
"typecheck": "tsc --noEmit",
"lint": "eslint src"
},
@@ -22,6 +22,7 @@
"devDependencies": {
"@types/node": "^22.9.0",
"@types/qrcode": "^1.5.5",
"tsup": "^8.5.1",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
}