Skip to content

Commit d46b8dd

Browse files
committed
use terser for minify
1 parent fc783dd commit d46b8dd

File tree

2 files changed

+63
-4
lines changed

2 files changed

+63
-4
lines changed

package-lock.json

Lines changed: 59 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"dist"
1111
],
1212
"scripts": {
13-
"build": "rimraf dist && tsup src/index.ts --dts --minify --treeshake",
13+
"build": "rimraf dist && tsup src/index.ts --dts --minify terser --treeshake",
1414
"lint": "eslint .",
1515
"test": "jest",
16-
"test:watch": "jest --watchAll",
16+
"test:watch": "jest --watchAll --verbose",
1717
"prepare": "husky install",
1818
"prepublishOnly": "npm run lint && npm run test"
1919
},
@@ -24,6 +24,7 @@
2424
"devDependencies": {
2525
"@babel/preset-env": "^7.23.3",
2626
"@babel/preset-typescript": "^7.23.3",
27+
"@types/jest": "^29.5.8",
2728
"@types/lodash": "^4.14.201",
2829
"@types/uuid": "^9.0.7",
2930
"@typescript-eslint/eslint-plugin": "^6.10.0",
@@ -43,6 +44,7 @@
4344
"nock": "^13.3.8",
4445
"prettier": "^3.0.3",
4546
"rimraf": "^5.0.5",
47+
"terser": "^5.24.0",
4648
"tslib": "^2.6.2",
4749
"tsup": "^7.2.0",
4850
"typescript": "^5.2.2",

0 commit comments

Comments
 (0)