forked from web-infra-dev/rspack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
101 lines (101 loc) · 4.65 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"name": "monorepo",
"version": "1.1.5",
"license": "MIT",
"description": "The fast Rust-based web bundler with webpack-compatible API",
"private": true,
"main": "./packages/rspack/dist/index.js",
"scripts": {
"x": "zx x.mjs",
"dev": "pnpm --filter @rspack/cli run dev",
"clean": "pnpm --filter @rspack/cli run clean",
"check-dependency-version": "check-dependency-version-consistency . --ignore-dep @napi-rs/cli --ignore-dep chalk --ignore-package webpack-test --ignore-package webpack-examples --ignore-package plugin-test",
"build:js": "pnpm --filter \"@rspack/core\" build:force && pnpm --filter \"@rspack/*\" --filter \"create-rspack\" --filter \"!@rspack/core\" build",
"build:cli:debug": "npm run build:binding:debug && npm run build:js",
"build:cli:release": "npm run build:binding:release && npm run build:js",
"build:cli:release:all": "pnpm --filter @rspack/binding build:release:all && npm run build:js",
"build:cli:release:arm64": "pnpm --filter @rspack/binding build:release:arm64 && npm run build:js",
"build:cli:release:x64": "pnpm --filter @rspack/binding build:release:x64 && npm run build:js",
"build:cli:release:linux": "pnpm --filter @rspack/binding build:release:linux && npm run build:js",
"build:cli:release:win": "pnpm --filter @rspack/binding build:release:win && npm run build:js",
"build:viewer": "pnpm --filter \"@rspack/*\" build:viewer",
"test:js": "pnpm -r run test",
"format:rs": "cargo fmt --all",
"format:js": "pnpm run format-ci:js --write",
"format-ci:js": "node ./node_modules/prettier/bin/prettier.cjs \"packages/**/src/**/*.{ts,tsx,js}\" \"crates/rspack_plugin_runtime/**/*.{ts,js}\" \"scripts/**/*.{cjs,mjs,js}\" \"x.mjs\" \"x\" --check",
"format-ci:toml": "npx @taplo/cli format --check '.cargo/*.toml' './crates/**/Cargo.toml' './Cargo.toml'",
"format:toml": "npx @taplo/cli format '.cargo/*.toml' './crates/**/Cargo.toml' './Cargo.toml'",
"lint:js": "pnpm run lint-ci:js --write",
"lint-ci:js": "biome check --diagnostic-level=warn --no-errors-on-unmatched --max-diagnostics=none",
"lint:rs": "node ./scripts/check_rust_dependency.cjs",
"build:binding:debug": "pnpm --filter @rspack/binding run build:debug",
"build:binding:release": "pnpm --filter @rspack/binding run build:release",
"build:binding:release-prod": "pnpm --filter @rspack/binding run build:release-prod",
"prepare": "is-ci || husky",
"test:diff": "pnpm --filter \"@rspack/*\" test:diff",
"test:hot": "pnpm --filter \"@rspack/*\" test:hot",
"test:unit": "pnpm --filter \"@rspack/*\" test",
"test:e2e": "pnpm --filter \"e2e-test\" test",
"test:ci": "cross-env NODE_OPTIONS=--max_old_space_size=8192 pnpm run build:js && pnpm run test:unit && npm run test:plugin && pnpm test:webpack",
"test:plugin": "pnpm --filter \"plugin-test\" test",
"test:webpack": "pnpm --filter \"webpack-test\" test:metric",
"doc-coverage": "pnpm --filter \"@rspack/core\" doc-coverage",
"api-extractor:local": "pnpm --filter \"@rspack/*\" api-extractor --local",
"api-extractor:ci": "pnpm --filter \"@rspack/*\" api-extractor:ci"
},
"homepage": "https://rspack.dev",
"bugs": "https://github.com/web-infra-dev/rspack/issues",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rspack"
},
"engines": {
"pnpm": "9.14.4"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@jest/reporters": "29.7.0",
"@microsoft/api-extractor": "7.47.11",
"@microsoft/api-extractor-model": "7.29.8",
"@rspack/cli": "workspace:*",
"@taplo/cli": "^0.7.0",
"@types/is-ci": "^3.0.4",
"@types/jest": "29.5.14",
"@types/node": "^20.12.7",
"@types/rimraf": "3.0.2",
"check-dependency-version-consistency": "^4.1.0",
"commander": "12.1.0",
"cross-env": "^7.0.3",
"husky": "^9.0.0",
"is-ci": "3.0.1",
"jest": "29.7.0",
"jest-cli": "29.7.0",
"jest-environment-node": "29.7.0",
"lint-staged": "^15.0.0",
"prettier": "3.4.1",
"prettier-2": "npm:[email protected]",
"rimraf": "3.0.2",
"ts-jest": "29.2.5",
"typescript": "^5.6.3",
"webpack": "^5.94.0",
"webpack-cli": "5.1.4",
"zx": "7.2.3"
},
"packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"rollup-plugin-dts": "patches/rollup-plugin-dts.patch"
}
},
"lint-staged": {
"*.rs": "rustfmt --edition 2021",
"*.{ts,tsx,js}": "pnpm run format:js",
"*.toml": "npx @taplo/cli format",
"*.{ts,tsx,js,cts,cjs,mts,mjs}": [
"pnpm run lint:js",
"node ./x ae ci"
],
"package.json": "pnpm run check-dependency-version"
}
}