|
12 | 12 | }, |
13 | 13 | "sideEffects": false, |
14 | 14 | "exports": { |
15 | | - ".": { |
16 | | - "import": "./dist/index.js", |
17 | | - "require": "./dist/index.cjs" |
18 | | - }, |
19 | | - "./dist/webpack/loaders/*": "./dist/webpack/loaders/*.cjs", |
20 | | - "./dist/rspack/loaders/*": "./dist/rspack/loaders/*.cjs" |
| 15 | + ".": "./dist/index.mjs", |
| 16 | + "./rspack/loaders/load": "./dist/rspack/loaders/load.mjs", |
| 17 | + "./rspack/loaders/transform": "./dist/rspack/loaders/transform.mjs", |
| 18 | + "./webpack/loaders/load": "./dist/webpack/loaders/load.mjs", |
| 19 | + "./webpack/loaders/transform": "./dist/webpack/loaders/transform.mjs", |
| 20 | + "./package.json": "./package.json" |
21 | 21 | }, |
22 | | - "main": "dist/index.js", |
23 | | - "module": "dist/index.js", |
24 | | - "types": "dist/index.d.ts", |
| 22 | + "main": "./dist/index.mjs", |
| 23 | + "module": "./dist/index.mjs", |
| 24 | + "types": "./dist/index.d.mts", |
25 | 25 | "files": [ |
26 | 26 | "dist" |
27 | 27 | ], |
28 | 28 | "engines": { |
29 | | - "node": ">=18.12.0" |
| 29 | + "node": "^20.19.0 || >=22.12.0" |
30 | 30 | }, |
31 | 31 | "scripts": { |
32 | 32 | "build": "tsdown", |
|
39 | 39 | "docs:gen-files": "pnpm -C docs run gen-files", |
40 | 40 | "prepublishOnly": "nr build", |
41 | 41 | "release": "bumpp", |
42 | | - "test": "nr test:build && vitest run --pool=forks", |
| 42 | + "test": "nr test:build && vitest run", |
43 | 43 | "test:build": "jiti scripts/buildFixtures.ts" |
44 | 44 | }, |
45 | 45 | "dependencies": { |
|
51 | 51 | "devDependencies": { |
52 | 52 | "@antfu/eslint-config": "catalog:", |
53 | 53 | "@antfu/ni": "catalog:", |
54 | | - "@farmfe/cli": "catalog:", |
55 | | - "@farmfe/core": "catalog:", |
56 | | - "@rspack/cli": "catalog:", |
57 | | - "@rspack/core": "catalog:", |
58 | | - "@types/fs-extra": "catalog:", |
| 54 | + "@farmfe/cli": "catalog:test", |
| 55 | + "@farmfe/core": "catalog:peer", |
| 56 | + "@rspack/cli": "catalog:test", |
| 57 | + "@rspack/core": "catalog:peer", |
59 | 58 | "@types/node": "catalog:", |
60 | 59 | "@types/picomatch": "catalog:", |
61 | 60 | "ansis": "catalog:", |
62 | 61 | "bumpp": "catalog:", |
63 | 62 | "esbuild": "catalog:", |
64 | | - "esbuild-plugin-copy": "catalog:", |
65 | 63 | "eslint": "catalog:", |
66 | 64 | "eslint-plugin-format": "catalog:", |
67 | | - "fast-glob": "catalog:", |
68 | | - "fs-extra": "catalog:", |
69 | | - "jiti": "catalog:", |
| 65 | + "jiti": "catalog:default", |
70 | 66 | "lint-staged": "catalog:", |
71 | | - "magic-string": "catalog:", |
72 | | - "rolldown": "catalog:", |
73 | | - "rollup": "catalog:", |
| 67 | + "magic-string": "catalog:test", |
| 68 | + "rolldown": "catalog:peer", |
| 69 | + "rollup": "catalog:peer", |
74 | 70 | "simple-git-hooks": "catalog:", |
75 | 71 | "tsdown": "catalog:", |
76 | 72 | "typescript": "catalog:", |
77 | | - "unloader": "catalog:", |
| 73 | + "unloader": "catalog:peer", |
78 | 74 | "unplugin": "workspace:*", |
79 | 75 | "unplugin-unused": "catalog:", |
80 | | - "vite": "catalog:", |
81 | | - "vitest": "catalog:", |
82 | | - "webpack": "catalog:", |
83 | | - "webpack-cli": "catalog:" |
| 76 | + "vite": "catalog:peer", |
| 77 | + "vitest": "catalog:test", |
| 78 | + "webpack": "catalog:peer", |
| 79 | + "webpack-cli": "catalog:test" |
84 | 80 | }, |
85 | 81 | "resolutions": { |
86 | 82 | "esbuild": "catalog:" |
87 | 83 | }, |
88 | 84 | "simple-git-hooks": { |
89 | | - "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged" |
| 85 | + "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && pnpm exec lint-staged" |
90 | 86 | }, |
91 | 87 | "lint-staged": { |
92 | 88 | "*": "eslint --fix" |
|
0 commit comments