Skip to content

Commit

Permalink
build: use tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
molvqingtai committed Dec 7, 2022
1 parent 7ba12ca commit d9f7429
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 9 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "dist/index.js",
"type": "module",
"scripts": {
"dev": "tsc --build tsconfig.dist.json --watch",
"build": "tsc --build --clean && tsc --build tsconfig.dist.json",
"dev": "tsup src/index.ts --dts --format esm --sourcemap --watch",
"build": "tsup src/index.ts --dts --format esm --sourcemap --clean",
"lint": "eslint src __tests__ --ext .js,.ts --fix",
"tsc": "tsc --noEmit",
"docs": "typedoc src/index.ts",
Expand Down Expand Up @@ -78,6 +78,7 @@
"koa-body": "^6.0.1",
"prettier": "^2.8.0",
"semantic-release": "^19.0.5",
"tsup": "^6.5.0",
"typedoc": "^0.23.21",
"typescript": "^4.9.3",
"vite": "^3.2.5",
Expand Down

0 comments on commit d9f7429

Please sign in to comment.