|
1 | 1 | { |
2 | 2 | "name": "ts-pattern", |
3 | | - "version": "4.2.3", |
| 3 | + "version": "4.3.0", |
4 | 4 | "description": " The exhaustive Pattern Matching library for TypeScript.", |
5 | 5 | "type": "module", |
6 | 6 | "source": "src/index.ts", |
7 | 7 | "exports": { |
8 | 8 | ".": { |
| 9 | + "require": { |
| 10 | + "types": "./dist/index.d.cts", |
| 11 | + "default": "./dist/index.cjs" |
| 12 | + }, |
| 13 | + "import": { |
| 14 | + "types": "./dist/index.d.ts", |
| 15 | + "default": "./dist/index.js" |
| 16 | + }, |
9 | 17 | "types": "./dist/index.d.ts", |
10 | | - "import": "./dist/index.mjs", |
11 | | - "require": "./dist/index.cjs", |
12 | | - "default": "./dist/index.mjs" |
| 18 | + "default": "./dist/index.js" |
13 | 19 | }, |
14 | 20 | "./package.json": "./package.json" |
15 | 21 | }, |
16 | 22 | "types": "dist/index.d.ts", |
17 | 23 | "main": "dist/index.cjs", |
18 | | - "module": "dist/index.mjs", |
19 | | - "unpkg": "dist/index.umd.cjs", |
| 24 | + "module": "dist/index.js", |
| 25 | + "unpkg": "dist/index.umd.js", |
20 | 26 | "scripts": { |
21 | | - "build": "rimraf dist && microbundle", |
| 27 | + "build": "rimraf dist && microbundle && sh ./scripts/generate-cts.sh", |
22 | 28 | "dev": "microbundle watch", |
23 | 29 | "prepublishOnly": "npm run test && npm run build", |
24 | 30 | "test": "jest", |
|
0 commit comments