forked from web-infra-dev/rsbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
82 lines (82 loc) · 2.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "rsbuild-monorepo",
"private": true,
"workspaces": {
"packages": [
"packages/*",
"packages/compat/*",
"scripts/*"
]
},
"scripts": {
"build": "cross-env NX_DAEMON=false nx run-many -t build --exclude @examples/* @e2e/* rsbuild-* --parallel=10",
"change": "changeset",
"changeset": "changeset",
"check-changeset": "cd ./scripts/check-changeset && pnpm start",
"check-dependency-version": "check-dependency-version-consistency . --ignore-dep vue-loader",
"dev:doc": "cd packages/document && pnpm run dev",
"e2e": "cd ./e2e && pnpm test",
"e2e:rspack": "cd ./e2e && pnpm test:rspack",
"e2e:webpack": "cd ./e2e && pnpm test:webpack",
"lint": "biome lint . --diagnostic-level=warn && ls-lint",
"prepare": "pnpm run build && simple-git-hooks",
"test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm run ut",
"update-modern": "cd ./scripts/update-packages && pnpm start:modern",
"update-rspack": "cd ./scripts/update-packages && pnpm start:rspack",
"update-rspress": "cd ./scripts/update-packages && pnpm start:rspress",
"sort-package-json": "npx sort-package-json \"packages/*/package.json\" \"packages/compat/*/package.json\"",
"ut": "vitest run",
"ut:watch": "vitest"
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
},
"nano-staged": {
"*.{md,mdx,json,css,less,scss}": "prettier --write",
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"prettier --write"
],
"package.json": "pnpm run check-dependency-version"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@changesets/cli": "^2.27.1",
"@ls-lint/ls-lint": "^2.2.2",
"@modern-js/module-tools": "^2.48.0",
"@rsbuild/tsconfig": "workspace:*",
"@scripts/test-helper": "workspace:*",
"check-dependency-version-consistency": "^4.1.0",
"cross-env": "^7.0.3",
"nano-staged": "^0.8.0",
"nx": "^18.0.4",
"prettier": "^3.2.4",
"simple-git-hooks": "^2.10.0",
"vitest": "^1.2.1"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=16.18.1",
"pnpm": ">=8.7.0"
},
"pnpm": {
"overrides": {
"esbuild": "~0.19.0",
"array.prototype.flat": "npm:@nolyfill/[email protected]",
"@rsbuild/core": "link:packages/core",
"@rsbuild/plugin-react": "link:packages/plugin-react",
"@rsbuild/plugin-svgr": "link:packages/plugin-svgr"
},
"allowedDeprecatedVersions": {
"vue": "2.x",
"consolidate": "0.15.1"
},
"packageExtensions": {
"dts-packer": {
"//": "`resolve >= 1.21.0` breaks dts-packer",
"dependencies": {
"resolve": "1.20.0"
}
}
}
}
}