Skip to content

Commit

Permalink
fix: ESM error (Chanzhaoyu#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored and jingChen55 committed Mar 27, 2023
1 parent 90e6a57 commit 8e85eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"start": "esno ./src/index.ts",
"dev": "esno watch ./src/index.ts",
"prod": "esno ./build/index.js",
"prod": "node ./build/index.mjs",
"build": "pnpm clean && tsup",
"clean": "rimraf build",
"lint": "eslint .",
Expand Down
2 changes: 1 addition & 1 deletion service/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
entry: ['src/index.ts'],
outDir: 'build',
target: 'es2020',
format: ['cjs'],
format: ['esm'],
splitting: false,
sourcemap: true,
minify: false,
Expand Down

0 comments on commit 8e85eff

Please sign in to comment.