Skip to content

Commit 552fe2c

Browse files
build: switch to tsdown (#195)
1 parent 04fa526 commit 552fe2c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@
44
"description": "Abstract chat parser for üWave client applications.",
55
"license": "MIT",
66
"author": "Renée Kooi <renee@kooi.me>",
7-
"main": "./dist/u-wave-parse-chat-markup.js",
8-
"module": "./dist/u-wave-parse-chat-markup.mjs",
7+
"main": "./dist/index.cjs",
8+
"module": "./dist/index.mjs",
99
"exports": {
1010
".": {
11-
"import": "./dist/u-wave-parse-chat-markup.mjs",
12-
"default": "./dist/u-wave-parse-chat-markup.js"
11+
"import": "./dist/index.mjs",
12+
"default": "./dist/index.cjs",
13+
"typings": {
14+
"import": "./dist/index.d.mts",
15+
"default": "./dist/index.d.cts"
16+
}
1317
},
1418
"./package.json": "./package.json"
1519
},
16-
"types": "./dist/index.d.ts",
20+
"types": "./dist/index.d.cts",
1721
"repository": {
1822
"type": "git",
1923
"url": "git+https://github.com/u-wave/parse-chat-markup.git"
@@ -24,7 +28,7 @@
2428
"bugs": "https://github.com/u-wave/parse-chat-markup/issues",
2529
"homepage": "https://github.com/u-wave/parse-chat-markup#readme",
2630
"scripts": {
27-
"prepare": "rollup -c",
31+
"prepare": "tsdown src/index.ts --format esm,cjs --dts",
2832
"lint": "eslint .",
2933
"test": "npm run tests-only && npm run lint",
3034
"tests-only": "vitest run --coverage.enabled --coverage.reporter=lcov --coverage.reporter=text --coverage.100"
@@ -36,8 +40,7 @@
3640
"eslint": "^8.2.0",
3741
"eslint-config-airbnb-base": "^15.0.0",
3842
"eslint-plugin-import": "^2.22.0",
39-
"rollup": "^4.6.0",
40-
"rollup-plugin-typescript2": "^0.36.0",
43+
"tsdown": "^0.21.2",
4144
"typescript": "^5.0.2",
4245
"vitest": "^2.0.1"
4346
}

0 commit comments

Comments
 (0)