forked from web-infra-dev/modern.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
120 lines (120 loc) · 4.05 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
116
117
118
119
120
{
"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",
"fast-lint": "sh -x ./scripts/fast-lint.sh",
"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/* --maxParallel=100",
"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": "npm run fast-lint",
"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": "cd ./scripts/update-rspress && pnpm start",
"update-rsbuild": "cd ./scripts/update-rsbuild && pnpm start"
},
"engines": {
"node": ">=14.17.6",
"pnpm": ">=8.7.0 <9"
},
"packageManager": "[email protected]",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"node --max_old_space_size=8192 ./node_modules/eslint/bin/eslint.js --fix --color --cache --quiet"
]
},
"eslintConfig": {
"root": true,
"extends": [
"@modern-js"
]
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/plugin-transform-modules-commonjs": "^7.22.15",
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@modern-js-app/eslint-config": "workspace:*",
"@modern-js/eslint-config": "workspace:*",
"@modern-js/monorepo-tools": "workspace:*",
"@modern-js/plugin-lint": "workspace:*",
"@modern-js/tsconfig": "workspace:*",
"@scripts/build": "workspace:*",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitest/ui": "^0.33.0",
"antd": "^5",
"check-dependency-version-consistency": "4.1.0",
"cross-env": "^7.0.3",
"esbuild": "0.17.19",
"eslint": "^8.28.0",
"husky": "^8.0.0",
"lint-staged": "~13.1.0",
"nx": "^17.0.1",
"vitest": "0.33.0"
},
"pnpm": {
"overrides": {
"@types/react": "^18",
"@types/react-dom": "^18"
},
"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"
}
}
}