fix: resolve __dirname issue in ESM build

This commit is contained in:
Naoki Oketani
2025-05-03 02:21:52 +00:00
parent ed6e8d71b4
commit 32ee936c71
5 changed files with 350 additions and 628 deletions

View File

@@ -13,7 +13,7 @@
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
"pack": "ncc build",
"pack": "ncc build --v8-cache --source-map --target es2020",
"test": "vitest",
"test:coverage": "vitest --coverage",
"all": "npm run build && npm run format && npm run lint && npm run pack && npm run test:coverage"