Skip to content

Commit 4a32706

Browse files
committed
feat: use tsup to build release
1 parent df80da6 commit 4a32706

File tree

6 files changed

+1017
-18
lines changed

6 files changed

+1017
-18
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"minio": "docker run -p 9000:9000 -p 9001:9001 quay.io/minio/minio server /data --console-address \":9001\"",
1414
"redis": "docker run -p 6379:6379 redis",
1515
"test-db": "docker-compose -f ./docker-compose.test.yaml up",
16-
"dist": "tsc",
16+
"dist": "tsup",
1717
"lint": "standard && tsc",
1818
"test": "dotenvx run --env-file=.env -- node tests/index.js",
1919
"test-inspect": "dotenvx run --env-file=.env -- node --inspect-brk tests/index.js",
@@ -29,11 +29,12 @@
2929
"bin/*",
3030
"src/*"
3131
],
32+
"main": "./dist/index.js",
3233
"exports": {
3334
"./package.json": "./package.json",
3435
".": {
35-
"default": "./src/index.js",
36-
"types": "./dist/src/index.d.ts"
36+
"import": "./dist/index.js",
37+
"default": "./dist/index.cjs"
3738
}
3839
},
3940
"repository": {
@@ -75,6 +76,7 @@
7576
"concurrently": "^8.2.2",
7677
"socket.io-client": "^4.7.5",
7778
"standard": "^17.1.0",
79+
"tsup": "^8.2.4",
7880
"typescript": "^5.3.3",
7981
"ws": "^8.16.0",
8082
"y-websocket": "^2.0.3"

0 commit comments

Comments
 (0)