Skip to content

Commit

Permalink
Replace rollup with tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
arturmuller committed Jul 27, 2024
1 parent f1c918e commit a7f7cd1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"node": ">=14.0.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.6",
"@types/expect": "^24.3.0",
"@types/lodash": "^4.14.144",
"@types/node": "^18.7.14",
Expand All @@ -31,12 +30,12 @@
"lodash": "^4.17.15",
"np": "^10.0.0",
"prettier": "^3.2.5",
"rollup": "^4.12.1",
"tsup": "^8.2.3",
"typescript": "^4.8.3",
"vitest": "^1.6.0"
},
"scripts": {
"build": "rm -rf ./{dist} && rollup --config ./rollup.config.js",
"build": "rm -rf ./{dist} && tsup",
"clean": "rm -rf ./{dist,node_modules}",
"fix": "npm run fix:eslint && npm run fix:prettier",
"fix:eslint": "npm run lint:eslint --fix",
Expand Down
20 changes: 0 additions & 20 deletions rollup.config.js

This file was deleted.

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({
entry: ['src/index.ts'],
sourcemap: true,
dts: true,
format: ['cjs', 'esm', 'iife'],
globalName: 'Superstruct',
})

0 comments on commit a7f7cd1

Please sign in to comment.