Skip to content

Commit

Permalink
feat: use tsup.config.ts instead of package.json for tsup config
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMikeladze committed Dec 30, 2023
1 parent 4044fe0 commit 1ed4e35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
19 changes: 0 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,6 @@
"release": "yarn build && yarn release-it",
"link:self": "yarn yalc publish && yarn link"
},
"tsup": {
"entry": [
"src/index.ts"
],
"treeshake": true,
"sourcemap": "inline",
"minify": true,
"clean": true,
"dts": true,
"splitting": false,
"format": [
"cjs",
"esm"
],
"external": [
"react"
],
"injectStyle": false
},
"types": "./dist/index.d.ts",
"exports": {
".": {
Expand Down
14 changes: 14 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
treeshake: true,
sourcemap: 'inline',
minify: true,
clean: true,
dts: true,
splitting: false,
format: ['cjs', 'esm'],
external: ['react'],
injectStyle: false,
});

0 comments on commit 1ed4e35

Please sign in to comment.