|
4 | 4 | "repository": "https://github.com/rspack-contrib/rspack-lite-tapable", |
5 | 5 | "license": "MIT", |
6 | 6 | "description": "Lite weight tapable for Rspack", |
7 | | - "main": "./dist/index.js", |
| 7 | + "type": "module", |
| 8 | + "main": "./dist/index.cjs", |
| 9 | + "module": "./dist/index.js", |
8 | 10 | "types": "./dist/index.d.ts", |
| 11 | + "exports": { |
| 12 | + ".": { |
| 13 | + "types": "./dist/index.d.ts", |
| 14 | + "require": "./dist/index.cjs", |
| 15 | + "import": "./dist/index.js" |
| 16 | + } |
| 17 | + }, |
9 | 18 | "scripts": { |
10 | | - "build": "tsc -b ./tsconfig.build.json", |
11 | | - "dev": "tsc -b -w", |
| 19 | + "build": "rslib build", |
| 20 | + "dev": "rslib build --watch", |
12 | 21 | "lint": "biome check .", |
13 | 22 | "lint:write": "biome check . --write", |
14 | 23 | "prepare": "simple-git-hooks && npm run build", |
15 | 24 | "test": "rstest run", |
16 | 25 | "release": "node ./scripts/release.mjs" |
17 | 26 | }, |
18 | | - "files": [ |
19 | | - "dist" |
20 | | - ], |
| 27 | + "files": ["dist"], |
21 | 28 | "simple-git-hooks": { |
22 | 29 | "pre-commit": "npx nano-staged" |
23 | 30 | }, |
|
28 | 35 | }, |
29 | 36 | "devDependencies": { |
30 | 37 | "@biomejs/biome": "^1.9.4", |
| 38 | + "@rslib/core": "^0.17.1", |
31 | 39 | "@rspack/core": "^1.6.0", |
32 | 40 | "@rstest/core": "0.6.1", |
33 | 41 | "@types/node": "^22.18.13", |
|
0 commit comments