Skip to content

Commit f5c5cdb

Browse files
authored
build: replace rollup with tsup (#41)
1 parent 8c038fe commit f5c5cdb

File tree

5 files changed

+345
-259
lines changed

5 files changed

+345
-259
lines changed

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
"license": "MIT",
88
"exports": {
99
".": {
10-
"import": "./dist/index.esm.js",
11-
"require": "./dist/index.cjs.js"
10+
"import": "./dist/index.mjs",
11+
"require": "./dist/index.js"
1212
}
1313
},
14-
"main": "./dist/index.cjs.js",
15-
"module": "./dist/index.esm.js",
14+
"main": "./dist/index.js",
15+
"module": "./dist/index.mjs",
1616
"types": "./dist/index.d.ts",
1717
"files": [
1818
"/dist"
1919
],
2020
"scripts": {
21-
"build": "rollup -c rollup.config.ts --configPlugin rollup-plugin-typescript2",
21+
"build": "tsup src/index.ts --dts --format cjs,esm",
2222
"clean": "rm -rf dist/ node_modules/",
2323
"lint": "eslint --max-warnings 0 .",
2424
"lint:format": "prettier --check .",
@@ -38,13 +38,10 @@
3838
"jest": "26.6.3",
3939
"mongodb": "4.2.2",
4040
"prettier": "2.3.1",
41-
"rollup": "2.60.2",
42-
"rollup-plugin-dts": "4.0.1",
43-
"rollup-plugin-typescript2": "0.31.1",
4441
"semantic-release": "18.0.0",
4542
"ts-jest": "26.5.6",
4643
"ts-node": "10.0.0",
47-
"tslib": "2.3.1",
44+
"tsup": "5.11.13",
4845
"typescript": "4.5.2"
4946
},
5047
"peerDependencies": {

0 commit comments

Comments
 (0)