Skip to content

Commit

Permalink
chore: use tsup.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
u3u committed May 3, 2023
1 parent 703d136 commit c7316cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dist"
],
"scripts": {
"build": "tsup src/index.ts --format cjs,esm,iife --dts-resolve --no-splitting --shims --clean",
"build": "tsup",
"format": "prettier --write .",
"preinstall": "npx only-allow pnpm",
"lint": "eslint --fix .",
Expand Down
9 changes: 9 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'tsup'

export default defineConfig({
clean: true,
dts: { resolve: true },
entry: ['src/index.ts'],
format: ['cjs', 'esm', 'iife'],
shims: true,
})

0 comments on commit c7316cb

Please sign in to comment.