Skip to content

Commit c3624bb

Browse files
committed
replace tsdx with tsup
1 parent ff5a042 commit c3624bb

File tree

3 files changed

+1338
-3929
lines changed

3 files changed

+1338
-3929
lines changed

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', { targets: { node: 'current' } }],
4+
'@babel/preset-typescript',
5+
],
6+
};

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
"license": "Apache-2.0",
66
"author": "SMSAPI <info@smsapi.pl>",
77
"main": "dist/index.js",
8-
"module": "dist/smsapi.esm.js",
98
"typings": "dist/index.d.ts",
109
"files": [
1110
"dist"
1211
],
1312
"scripts": {
14-
"build": "cross-env NODE_ENV=production tsdx build",
13+
"build": "rimraf dist && tsup src/index.ts --dts --minify",
1514
"lint": "eslint .",
16-
"start": "tsdx watch",
17-
"test": "tsdx test --runInBand",
18-
"test:watch": "tsdx test --watchAll",
19-
"prepare": "husky install && yarn build",
15+
"test": "jest",
16+
"test:watch": "jest --watchAll",
17+
"prepare": "husky install",
2018
"prepublishOnly": "yarn lint && yarn test"
2119
},
2220
"dependencies": {
@@ -25,6 +23,8 @@
2523
"lodash": "^4.17.21"
2624
},
2725
"devDependencies": {
26+
"@babel/preset-env": "^7.22.9",
27+
"@babel/preset-typescript": "^7.22.5",
2828
"@types/lodash": "^4.14.195",
2929
"@types/uuid": "^9.0.2",
3030
"@typescript-eslint/eslint-plugin": "^6.0.0",
@@ -39,12 +39,13 @@
3939
"eslint-plugin-promise": "^6.1.1",
4040
"eslint-plugin-standard": "^5.0.0",
4141
"husky": "^8.0.3",
42+
"jest": "^29.6.1",
4243
"nock": "^13.3.1",
4344
"prettier": "^3.0.0",
4445
"rimraf": "^5.0.1",
45-
"tsdx": "^0.13.3",
4646
"tslib": "^2.6.0",
47-
"typescript": "^4.9.5",
47+
"tsup": "^7.1.0",
48+
"typescript": "^5.1.6",
4849
"uuid": "^9.0.0"
4950
},
5051
"engines": {

0 commit comments

Comments
 (0)