|
4 | 4 | "description": "Abstract chat parser for üWave client applications.", |
5 | 5 | "license": "MIT", |
6 | 6 | "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", |
9 | 9 | "exports": { |
10 | 10 | ".": { |
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 | + } |
13 | 17 | }, |
14 | 18 | "./package.json": "./package.json" |
15 | 19 | }, |
16 | | - "types": "./dist/index.d.ts", |
| 20 | + "types": "./dist/index.d.cts", |
17 | 21 | "repository": { |
18 | 22 | "type": "git", |
19 | 23 | "url": "git+https://github.com/u-wave/parse-chat-markup.git" |
|
24 | 28 | "bugs": "https://github.com/u-wave/parse-chat-markup/issues", |
25 | 29 | "homepage": "https://github.com/u-wave/parse-chat-markup#readme", |
26 | 30 | "scripts": { |
27 | | - "prepare": "rollup -c", |
| 31 | + "prepare": "tsdown src/index.ts --format esm,cjs --dts", |
28 | 32 | "lint": "eslint .", |
29 | 33 | "test": "npm run tests-only && npm run lint", |
30 | 34 | "tests-only": "vitest run --coverage.enabled --coverage.reporter=lcov --coverage.reporter=text --coverage.100" |
|
36 | 40 | "eslint": "^8.2.0", |
37 | 41 | "eslint-config-airbnb-base": "^15.0.0", |
38 | 42 | "eslint-plugin-import": "^2.22.0", |
39 | | - "rollup": "^4.6.0", |
40 | | - "rollup-plugin-typescript2": "^0.36.0", |
| 43 | + "tsdown": "^0.21.2", |
41 | 44 | "typescript": "^5.0.2", |
42 | 45 | "vitest": "^2.0.1" |
43 | 46 | } |
|
0 commit comments