|
6 | 6 | "scripts": { |
7 | 7 | "lint": "tsc && eslint .", |
8 | 8 | "format": "eslint --fix .", |
9 | | - "build": "tsup ./src/index.ts", |
10 | 9 | "doc": "typedoc ./src --media ./media --plugin typedoc-plugin-extras --favicon ./media/logo.png --footerLastModified true --plugin typedoc-material-theme --themeColor '#03284e' --plugin typedoc-plugin-rename-defaults", |
11 | 10 | "test": "vitest", |
12 | | - "ci:release": "npm run build && changeset publish" |
| 11 | + "build": "rm -rf dist && pnpm run build:js && pnpm run build:types", |
| 12 | + "build:js": "node build.mjs", |
| 13 | + "build:types": "tsc -p tsconfig.types.json", |
| 14 | + "ci:release": "pnpm run build && changeset publish" |
13 | 15 | }, |
14 | 16 | "keywords": [], |
15 | 17 | "files": [ |
|
20 | 22 | "types": "./dist/index.d.cts", |
21 | 23 | "exports": { |
22 | 24 | ".": { |
23 | | - "import": { |
24 | | - "types": "./dist/index.d.ts", |
25 | | - "default": "./dist/index.js" |
| 25 | + "types": { |
| 26 | + "import": "./dist/index.d.ts", |
| 27 | + "require": "./dist/index.d.cts" |
26 | 28 | }, |
27 | | - "require": { |
28 | | - "types": "./dist/index.d.cts", |
29 | | - "default": "./dist/index.cjs" |
30 | | - } |
| 29 | + "import": "./dist/index.js", |
| 30 | + "require": "./dist/index.cjs" |
31 | 31 | } |
32 | 32 | }, |
33 | 33 | "author": { |
|
45 | 45 | "@eslint/js": "^9.0.0", |
46 | 46 | "@types/highland": "^2.13.0", |
47 | 47 | "@types/node": "^20.10.7", |
| 48 | + "esbuild": "^0.27.3", |
48 | 49 | "eslint": "^8.57.0", |
49 | 50 | "eslint-config-prettier": "^9.1.0", |
50 | 51 | "eslint-plugin-prettier": "^5.1.3", |
51 | 52 | "globals": "^15.0.0", |
52 | 53 | "highland": "^2.13.5", |
53 | | - "npm-run-all": "^4.1.5", |
54 | 54 | "prettier": "3.2.5", |
55 | | - "tsup": "^8.0.1", |
56 | 55 | "typedoc": "^0.25.7", |
57 | 56 | "typedoc-material-theme": "^1.0.2", |
58 | 57 | "typedoc-plugin-extras": "^3.0.0", |
|
64 | 63 | "publishConfig": { |
65 | 64 | "access": "public" |
66 | 65 | }, |
67 | | - "tsup": { |
68 | | - "format": [ |
69 | | - "esm", |
70 | | - "cjs" |
71 | | - ], |
72 | | - "splitting": true, |
73 | | - "cjsInterop": true, |
74 | | - "dts": { |
75 | | - "footer": "export = Stream" |
76 | | - } |
77 | | - }, |
78 | 66 | "packageManager": "pnpm@8.14.0+sha1.bb42032ff80dba5f9245bc1b03470d2fa0b7fb2f" |
79 | 67 | } |
0 commit comments