Skip to content

Commit

Permalink
chore: use tsup instead of build.ts (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Nov 11, 2023
1 parent 48104d5 commit 6257b7e
Show file tree
Hide file tree
Showing 4 changed files with 380 additions and 431 deletions.
73 changes: 0 additions & 73 deletions build.ts

This file was deleted.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"scripts": {
"test": "jest",
"build": "rimraf dist && tsx ./build.ts",
"build": "tsup",
"watch": "tsup --watch",
"postbuild": "publint",
"prerelease": "yarn build && yarn test",
"release": "np"
Expand All @@ -56,23 +57,20 @@
"access": "public"
},
"engines": {
"node": ">=18.0.0"
"node": ">=18.14.1"
},
"dependencies": {},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.3",
"@types/node": "^18.7.16",
"@types/supertest": "^2.0.12",
"esbuild": "^0.18.13",
"hono": "^3.3.4",
"hono": "^3.9.2",
"jest": "^29.6.1",
"np": "^7.7.0",
"publint": "^0.1.16",
"rimraf": "^3.0.2",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"tsx": "^3.12.7",
"tsup": "^7.2.0",
"typescript": "^4.8.3"
}
}
}
10 changes: 10 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['./src/**/*.ts'],
format: ['esm', 'cjs'],
dts: true,
splitting: false,
sourcemap: false,
clean: true,
})
Loading

0 comments on commit 6257b7e

Please sign in to comment.