-
Notifications
You must be signed in to change notification settings - Fork 144
/
package.json
60 lines (60 loc) · 1.89 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
{
"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",
"build:doc": "cd website && pnpm run build",
"change": "changeset",
"changeset": "changeset",
"check-dependency-version": "npx check-dependency-version-consistency .",
"check-spell": "npx cspell",
"dev:doc": "cd website && pnpm run dev",
"e2e": "cd ./e2e && pnpm test",
"e2e:rspack": "cd ./e2e && pnpm test:rspack",
"e2e:webpack": "cd ./e2e && pnpm test:webpack",
"format": "prettier --write .",
"lint": "biome check . --diagnostic-level=warn && pnpm run check-spell",
"prebundle": "nx run-many -t prebundle",
"prepare": "pnpm run build && simple-git-hooks",
"sort-package-json": "npx sort-package-json \"./package.json\" \"packages/*/package.json\" \"packages/compat/*/package.json\"",
"test": "pnpm run ut",
"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}": [
"biome check --write --formatter-enabled=false --linter-enabled=false --no-errors-on-unmatched",
"prettier --write"
]
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@changesets/cli": "^2.27.10",
"@rsbuild/config": "workspace:*",
"@scripts/test-helper": "workspace:*",
"cross-env": "^7.0.3",
"cspell-ban-words": "^0.0.4",
"nano-staged": "^0.8.0",
"nx": "^20.1.3",
"prettier": "^3.4.1",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18.0.0",
"pnpm": ">=9.0.0"
}
}