forked from web-infra-dev/modern.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
115 lines (115 loc) · 4.37 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"private": true,
"name": "modern-js-monorepo",
"description": "A Progressive React Framework for modern web development.",
"homepage": "https://modernjs.dev",
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
"repository": "web-infra-dev/modern.js",
"license": "MIT",
"keywords": [
"react",
"framework",
"modern",
"modern.js"
],
"scripts": {
"new": "modern new",
"setup": "npm run reset && pnpm install",
"reset": "npx rimraf --glob ./**/node_modules",
"test": "npm run test:ut",
"test:rspack": "cd tests && pnpm run test:rspack",
"test:jest": "cd tests && pnpm run test:ut",
"test:vitest": "node scripts/vitest-config/vitestRunAll.js",
"test:ut": "pnpm run test:jest && pnpm run test:vitest",
"test:ut:update": "pnpm run test:jest -u && pnpm run test:vitest -u",
"test:e2e": "cd tests && npm run test",
"lint:package-json": "cd ./scripts/lint-package-json && pnpm start",
"prepare-build": "cross-env NX_DAEMON=false NX_REJECT_UNKNOWN_LOCAL_CACHE=0 nx run-many -t build -p @modern-js/* --exclude=@modern-js/main-doc,@modern-js/module-tools-docs --maxParallel=4",
"prepare": "npm run prepare-build && husky install",
"build:required": "cross-env NX_DAEMON=false nx run-many -t build -p @modern-js/uni-builder",
"lint": "biome check",
"change": "modern change",
"clear": "modern clear",
"deploy": "modern deploy",
"bump": "modern bump",
"pre": "modern pre",
"change-status": "modern change-status",
"gen-release-note": "modern gen-release-note",
"release": "modern release --ignore-scripts",
"fix:lockfile": "pnpm install --fix-lockfile",
"update:lockfile": "pnpm install --lockfile-only",
"check-changeset": "cd ./scripts/check-changeset && pnpm start",
"check-dependencies": "check-dependency-version-consistency .",
"update-codesmith": "cd ./scripts/update-codesmith && pnpm start",
"update-rspress": "npx taze major --include /rspress/ -w -r -l",
"update-rsbuild": "npx taze major --include /rsbuild/ -w -r -l",
"build:main_docs": "pnpm --filter @modern-js/main-doc... build && pnpm --filter @modern-js/main-doc build",
"build:module_docs": "pnpm --filter @modern-js/module-tools-docs... build && pnpm --filter @modern-js/module-tools-docs build",
"gen:docs": "rm -rf doc_output && mkdir doc_output && cp -r ./packages/document/main-doc/doc_build/* ./doc_output && cp -r ./packages/document/module-doc/doc_build/ ./doc_output/module-tools",
"build:docs": "pnpm run build:main_docs && pnpm run build:module_docs && pnpm run gen:docs"
},
"engines": {
"node": ">=14.17.6",
"pnpm": ">=9.0.0"
},
"packageManager": "[email protected]",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [
"biome check --files-ignore-unknown=true"
]
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.22.15",
"@biomejs/biome": "1.9.4",
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@modern-js/monorepo-tools": "workspace:*",
"@modern-js/tsconfig": "workspace:*",
"@scripts/build": "workspace:*",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@vitest/ui": "^0.33.0",
"antd": "^5",
"check-dependency-version-consistency": "4.1.1",
"cross-env": "^7.0.3",
"esbuild": "0.17.19",
"husky": "^8.0.0",
"lint-staged": "~13.3.0",
"nx": "^17.0.1",
"rimraf": "^6.0.1",
"vitest": "0.33.0"
},
"pnpm": {
"overrides": {
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1"
},
"peerDependencyRules": {
"allowedVersions": {
"@mdx-js/react@^1.6.22>react": "18"
}
},
"allowedDeprecatedVersions": {
"@babel/plugin-proposal-object-rest-spread": "7.12.1 || 7.20.7",
"@babel/plugin-proposal-private-property-in-object": "7.21.0",
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
"formidable": "1.2.6",
"sourcemap-codec": "1.4.8",
"js-polyfills": "0.1.43",
"picturefill": "3.0.3",
"querystring": "0.2.0",
"string-similarity": "4.0.4",
"source-map-resolve": "0.6.0 || 0.5.3",
"@formatjs/intl-utils": "3.8.4",
"debug": "4.1.1",
"uuid": "3.4.0",
"trim": "0.0.1"
}
}
}