Skip to content

Commit

Permalink
chore: dedup deps version
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Nov 22, 2023
1 parent 84b6b73 commit ab94a77
Show file tree
Hide file tree
Showing 51 changed files with 414 additions and 471 deletions.
File renamed without changes.
69 changes: 69 additions & 0 deletions .github/workflows/check-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Check Dependency Version Consistency

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Install Pnpm
uses: pnpm/action-setup@v2

- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts

- name: Check dependency version consistency
run: pnpm run check-dependencies
npx check-dependency-version-consistency name: check dependency version consistency

on: [push, pull_request]

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: pnpm install

- name: Check dependency version consistency
run: pnpm run check-dependencies \
--ignore-deps "@types/node" \
--ignore-deps "antd" \
--ignore-deps "esbuild" \
--ignore-deps "fs-extra" \
--ignore-deps "glob" \
--ignore-deps "minimatch" \
--ignore-deps "react" \
--ignore-deps "react-dom" \
--ignore-deps "react-router-dom" \
--ignore-deps "tailwindcss" \
--ignore-deps "tsconfig-paths" \
--ignore-deps "twin.macro" \
--ignore-deps "type-fest" \
--ignore-deps "typescript" \
--ignore-deps "vue" \
--ignore-deps "vue-loader"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"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",
Expand Down Expand Up @@ -79,6 +80,7 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitest/ui": "^0.33.0",
"check-dependency-version-consistency": "4.1.0",
"cross-env": "^7.0.3",
"esbuild": "0.17.19",
"eslint": "^8.28.0",
Expand Down Expand Up @@ -131,7 +133,8 @@
"resolve-url": "0.2.1",
"devcert": "1.0.0",
"superagent": "6.1.0",
"@types/sass": "1.45.0"
"@types/sass": "1.45.0",
"trim": "0.0.1"
}
}
}
6 changes: 3 additions & 3 deletions packages/builder/builder-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,17 @@
"htmlparser2": "9.0.0",
"line-diff": "2.1.1",
"postcss": "8.4.31",
"source-map": "^0.7.4",
"source-map": "0.7.4",
"webpack": "^5.88.1",
"webpack-sources": "^3.2.3",
"webpack-sources": "3.2.3",
"zod": "^3.22.3",
"zod-validation-error": "1.2.0"
},
"devDependencies": {
"@babel/preset-env": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@scripts/vitest-config": "workspace:*",
"@types/babel__core": "^7.20.0",
"@types/babel__core": "^7.20.1",
"@types/caniuse-lite": "^1.0.1",
"@types/node": "^14",
"html-webpack-plugin": "5.5.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@modern-js/builder-webpack-provider": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/vitest-config": "workspace:*",
"@types/babel__core": "^7.20.0",
"@types/babel__core": "^7.20.1",
"@types/node": "^14",
"typescript": "^5"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/builder/plugin-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
"@scripts/build": "workspace:*",
"@scripts/vitest-config": "workspace:*",
"@swc/core": "1.3.42",
"@types/babel__core": "^7.20.0",
"@types/babel__core": "^7.20.1",
"antd": "4",
"lodash": "^4.17.21",
"magic-string": "0.29.0",
"source-map": "^0.7.4",
"magic-string": "0.30.5",
"source-map": "0.7.4",
"typescript": "^5",
"webpack": "^5.88.1",
"react": "^18",
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/plugin-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"@modern-js/builder-shared": "workspace:*",
"@swc/helpers": "0.5.3",
"@vue/babel-plugin-jsx": "1.1.1",
"@vue/babel-plugin-jsx": "1.1.5",
"vue-loader": "^17.2.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/doc-plugin-auto-sidebar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/yaml-front-matter": "^4.1.0",
"husky": "^8",
"husky": "^8.0.0",
"lint-staged": "~13.1.0",
"prettier": "^2.6.2",
"prettier": "^2.8.1",
"typescript": "^5",
"vitest": "0.33.0",
"yaml-front-matter": "^4.1.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/plugin-bff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
"@modern-js/app-tools": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/babel__core": "^7.20.0",
"@types/babel__core": "^7.20.1",
"@types/jest": "^29",
"@types/node": "^14",
"jest": "^29",
"memfs": "^3.3.0",
"memfs": "^3.5.1",
"ts-jest": "^29.1.0",
"typescript": "^5",
"webpack": "^5.88.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/plugin-data-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@
"@modern-js/types": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/babel__core": "^7.20.0",
"@types/babel__core": "^7.20.1",
"@types/jest": "^29",
"@types/node": "^14",
"@types/supertest": "^2.0.11",
"isomorphic-fetch": "^3.0.0",
"jest": "^29",
"memfs": "^3.3.0",
"memfs": "^3.5.1",
"supertest": "^6.1.6",
"ts-jest": "^29.1.0",
"typescript": "^5",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/plugin-lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"@modern-js/tsconfig": "workspace:*",
"@modern-js/utils": "workspace:*",
"cross-spawn": "^7.0.1",
"cross-spawn": "^7.0.3",
"eslint": "^8.28.0",
"husky": "^8.0.0",
"@swc/helpers": "0.5.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/plugin-ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
},
"dependencies": {
"@modern-js/utils": "workspace:*",
"node-mocks-http": "^1.10.1",
"normalize-path": "^3.0.0",
"node-mocks-http": "^1.11.0",
"normalize-path": "3.0.0",
"portfinder": "^1.0.28",
"@swc/helpers": "0.5.3"
},
Expand Down
14 changes: 7 additions & 7 deletions packages/devtools/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/themes": "^2.0.0",
"@types/jest": "~29.2.4",
"@types/lodash": "^4.14.196",
"@types/jest": "^29",
"@types/lodash": "4.14.181",
"@types/node": "~16.11.7",
"@types/react": "~18.0.26",
"@types/react-dom": "~18.0.10",
"@types/react": "^18",
"@types/react-dom": "^18",
"birpc": "0.2.13",
"clsx": "^1.2.1",
"lodash": "^4.17.21",
"p-defer": "3.0.0",
"p-defer": "^3.0.0",
"postcss-custom-media": "^10.0.1",
"react": "~18.2.0",
"react-base16-styling": "^0.9.1",
Expand All @@ -59,11 +59,11 @@
"react-json-tree": "^0.18.0",
"react-json-view": "^1.21.3",
"react-use": "^17.4.0",
"rimraf": "~3.0.2",
"rimraf": "^3.0.2",
"suspend-react": "^0.1.3",
"type-fest": "^4.1.0",
"typescript": "~5.0.4",
"ufo": "^1.2.0",
"ufo": "^1.3.0",
"valtio": "^1.11.1"
}
}
2 changes: 1 addition & 1 deletion packages/devtools/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"dependencies": {
"@modern-js/types": "workspace:*",
"@modern-js/utils": "workspace:*",
"ufo": "^1.2.0",
"ufo": "^1.3.0",
"ws": "^8.13.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/document/main-doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"rspress": "1.7.1",
"@rspress/shared": "1.7.1",
"@types/node": "^16",
"@types/fs-extra": "^9"
"@types/fs-extra": "9.0.13"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"test": "jest --passWithNoTests"
},
"devDependencies": {
"@modern-js/codesmith": "2.2.5",
"@modern-js/codesmith-api-app": "2.2.5",
"@modern-js/codesmith-api-json": "2.2.5",
"@modern-js/codesmith": "2.3.0",
"@modern-js/codesmith-api-app": "2.3.0",
"@modern-js/codesmith-api-json": "2.3.0",
"@modern-js/dependence-generator": "workspace:*",
"@modern-js/generator-common": "workspace:*",
"@modern-js/generator-utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/module/plugin-module-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"test": "jest --passWithNoTests"
},
"dependencies": {
"@babel/core": "^7.22.5",
"@babel/core": "^7.23.2",
"@swc/helpers": "0.5.3"
},
"devDependencies": {
"@modern-js/module-tools": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/babel__core": "7.1.16",
"@types/babel__core": "^7.20.1",
"@types/jest": "^29",
"@types/node": "^14",
"jest": "^29",
Expand Down
2 changes: 1 addition & 1 deletion packages/module/plugin-module-polyfill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test": "jest --passWithNoTests"
},
"dependencies": {
"@babel/core": "^7.22.5",
"@babel/core": "^7.23.2",
"@babel/plugin-syntax-jsx": "7.22.5",
"@babel/plugin-syntax-typescript": "7.22.5",
"@modern-js/plugin-module-babel": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/module/plugin-module-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"prepublishOnly": "only-allow-pnpm"
},
"dependencies": {
"@babel/core": "^7.22.5",
"@babel/core": "^7.23.2",
"@babel/plugin-syntax-typescript": "7.22.5",
"@modern-js/plugin-module-babel": "workspace:*",
"@swc/helpers": "0.5.3",
Expand All @@ -35,7 +35,7 @@
"devDependencies": {
"@modern-js/module-tools": "workspace:*",
"@scripts/build": "workspace:*",
"@types/babel__core": "7.1.16",
"@types/babel__core": "^7.20.1",
"@types/node": "^14",
"jest": "^29",
"typescript": "^5"
Expand Down
2 changes: 1 addition & 1 deletion packages/review/eslint-config-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^2.3.2"
"prettier": "^2.8.1"
},
"devDependencies": {
"eslint-find-rules": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime/plugin-garfish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
},
"dependencies": {
"@modern-js/utils": "workspace:*",
"@types/debug": "^4.1.7",
"@types/debug": "4.1.7",
"@types/react-loadable": "^5.5.6",
"debug": "^4.3.2",
"debug": "4.3.4",
"garfish": "^1.8.1",
"hoist-non-react-statics": "^3.3.2",
"react-loadable": "^5.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime/plugin-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@
"@modern-js/prod-server": "workspace:*",
"@modern-js/types": "workspace:*",
"@rsbuild/babel-preset": "0.0.7",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^13.4.0",
"@types/testing-library__jest-dom": "^5.14.3",
"path-to-regexp": "^6.2.0",
"supertest": "^6.1.6",
"babel-jest": "^29.5.0",
"enhanced-resolve": "5.12.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.5.0",
"jest": "^29",
"jest-environment-jsdom": "^29.5.0",
"@jest/types": "^29.5.0",
"ts-jest": "^29.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/server/babel-plugin-module-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"glob": "^8.0.3",
"pkg-up": "^3.1.0",
"pkg-up": "3.1.0",
"reselect": "^4.1.7",
"resolve": "^1.22.1",
"@swc/helpers": "0.5.3"
Expand All @@ -52,7 +52,7 @@
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"common-tags": "^1.8.2",
"jest": "^29.3.1"
"jest": "^29"
},
"sideEffects": false,
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/plugin-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@types/node": "^14",
"@types/supertest": "^2.0.11",
"@types/type-is": "^1.6.3",
"express": "^4.17.1",
"express": "^4.17.2",
"jest": "^29",
"supertest": "^6.1.6",
"typescript": "^5",
Expand Down
Loading

0 comments on commit ab94a77

Please sign in to comment.