Skip to content

Commit

Permalink
chore: migration project to pnpm manage
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Nov 27, 2023
1 parent 5503674 commit 9abaed7
Show file tree
Hide file tree
Showing 12 changed files with 46,492 additions and 69 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmmirror.com
29 changes: 0 additions & 29 deletions lerna.json

This file was deleted.

18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"lint:pc": "cd ./packages/pc && npm run lint",
"lint:g6": "cd ./packages/g6 && npm run lint",
"lint:all": "npm run lint:core && npm run lint:element && npm run lint:plugin && npm run lint:pc && npm run lint:g6",
"build": "lerna run build --include-dependencies --stream",
"build": "npm run build:all",
"lint": "npm run lint:all",
"test:core": "cd ./packages/core && npm run test",
"test:element": "cd ./packages/element && npm run test",
Expand All @@ -29,12 +29,8 @@
"test": "npm run test:core && npm run test:element && npm run test:plugin && npm run test:pc",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"pretty-quick": "pretty-quick",
"clean": "lerna clean -y",
"clear": "lerna clean && lerna clean -y",
"clean:modules": "rimraf node_modules",
"bootstrap": "lerna bootstrap",
"ci": "npm run clean && npm run clean:modules && npm install && npm run bootstrap && npm run build:all && npm run lint:all && npm run test",
"ls": "lerna list"
"clean": "rimraf node_modules",
"ci": "npm run clean && npm run clean:modules && npm install && npm run bootstrap && npm run build:all && npm run lint:all && npm run test"
},
"husky": {
"hooks": {
Expand All @@ -51,7 +47,6 @@
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^4.2.5",
"lerna": "^3.19.0",
"lint-staged": "^10.2.2",
"monaco-editor": "0.29.1",
"monaco-editor-webpack-plugin": "5.0.0",
Expand All @@ -65,7 +60,7 @@
"tslint-config-airbnb": "^5.11.2",
"tslint-config-prettier": "^1.18.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^4.6.3"
"typescript": "^5.3.2"
},
"devDependencies": {
"@types/react": "^16.9.35",
Expand All @@ -79,12 +74,13 @@
"pre-commit": "^1.2.2",
"react-scripts": "3.1.2"
},
"resolutions": {
"overrides": {
"@types/react": "^16.9.35",
"monaco-editor": "0.29.1",
"monaco-editor-webpack-plugin": "5.0.0",
"react-monaco-editor": "^0.40.0",
"normalize-url": "^4.1.0",
"sharp": "^0.30.4"
"sharp": "^0.30.4",
"electron": "23.3.13"
}
}
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
]
},
"dependencies": {
"@antv/algorithm": "^0.1.8",
"@antv/algorithm": "^0.1.26",
"@antv/dom-util": "^2.0.1",
"@antv/event-emitter": "~0.1.0",
"@antv/g-base": "^0.5.1",
Expand All @@ -67,15 +67,15 @@
"@antv/path-util": "^2.0.3",
"@antv/util": "~2.0.5",
"ml-matrix": "^6.5.0",
"tslib": "^2.1.0"
"tslib": "^2.6.2"
},
"devDependencies": {
"@antv/g-canvas": "^0.5.2",
"@antv/g-svg": "^0.5.2",
"@babel/core": "^7.7.7",
"@turf/turf": "^5.1.6",
"@types/jest": "^25.2.1",
"@types/node": "13.11.1",
"@types/node": "20.10.0",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@umijs/fabric": "^2.0.0",
"awesome-typescript-loader": "^5.2.1",
Expand All @@ -85,15 +85,15 @@
"father": "^2.29.1",
"husky": "^4.2.5",
"jest": "^26.0.1",
"jest-electron": "^0.1.7",
"jest-electron": "^0.1.12",
"jest-extended": "^0.11.2",
"lint-staged": "^10.2.11",
"pre-commit": "^1.2.2",
"prettier": "^2.0.5",
"rimraf": "^3.0.0",
"ts-jest": "^24.1.0",
"ts-loader": "^7.0.3",
"typescript": "^4.6.3",
"typescript": "^5.3.2",
"stats-js": "^1.0.1"
}
}
10 changes: 5 additions & 5 deletions packages/element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@
},
"dependencies": {
"@antv/g-base": "^0.5.1",
"@antv/g6-core": "0.8.23",
"@antv/g6-core": "workspace:*",
"@antv/util": "~2.0.5",
"tslib": "^2.1.0"
"tslib": "^2.6.2"
},
"devDependencies": {
"@antv/g6": "4.5.1",
"@babel/core": "^7.7.7",
"@turf/turf": "^5.1.6",
"@types/jest": "^25.2.1",
"@types/node": "13.11.1",
"@types/node": "20.10.0",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@umijs/fabric": "^2.0.0",
"awesome-typescript-loader": "^5.2.1",
Expand All @@ -80,14 +80,14 @@
"father": "^2.29.1",
"husky": "^4.2.5",
"jest": "^26.0.1",
"jest-electron": "^0.1.7",
"jest-electron": "^0.1.12",
"jest-extended": "^0.11.2",
"lint-staged": "^10.2.11",
"pre-commit": "^1.2.2",
"prettier": "^2.0.5",
"rimraf": "^3.0.0",
"ts-jest": "^24.1.0",
"ts-loader": "^7.0.3",
"typescript": "^4.6.3"
"typescript": "^5.3.2"
}
}
8 changes: 5 additions & 3 deletions packages/g6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@
]
},
"dependencies": {
"@antv/g6-pc": "0.8.23"
"@antv/g6-pc": "workspace:*"
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.7.4",
"@turf/turf": "^5.1.6",
"@types/jest": "^25.2.1",
"@types/node": "13.11.1",
"@types/node": "20.10.0",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@umijs/fabric": "^2.0.0",
"babel-loader": "^8.0.6",
Expand All @@ -85,7 +87,7 @@
"prettier": "^2.0.5",
"rimraf": "^3.0.0",
"ts-loader": "^7.0.3",
"typescript": "^4.6.3",
"typescript": "^5.3.2",
"webpack": "^4.41.4",
"webpack-cli": "^3.3.10"
}
Expand Down
17 changes: 9 additions & 8 deletions packages/pc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@
},
"dependencies": {
"@ant-design/colors": "^4.0.5",
"@antv/algorithm": "^0.1.8",
"@antv/algorithm": "^0.1.26",
"@antv/dom-util": "^2.0.1",
"@antv/event-emitter": "~0.1.0",
"@antv/g-base": "^0.5.1",
"@antv/g-canvas": "^0.5.2",
"@antv/g-math": "^0.1.1",
"@antv/g-svg": "^0.5.1",
"@antv/g6-core": "^0.8.23",
"@antv/g6-element": "0.8.23",
"@antv/g6-plugin": "0.8.23",
"@antv/g6-core": "workspace:*",
"@antv/g6-element": "workspace:*",
"@antv/g6-plugin": "workspace:*",
"@antv/hierarchy": "^0.6.10",
"@antv/layout": "^0.3.0",
"@antv/matrix-util": "^3.1.0-beta.3",
Expand All @@ -87,15 +87,16 @@
"dagre": "^0.8.5",
"insert-css": "^2.0.0",
"ml-matrix": "^6.5.0",
"tslib": "^2.1.0"
"tslib": "^2.6.2"
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.7.4",
"@turf/turf": "^5.1.6",
"@types/jest": "^25.2.1",
"@types/node": "13.11.1",
"@types/node": "20.10.0",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@umijs/fabric": "^2.0.0",
"awesome-typescript-loader": "^5.2.1",
Expand All @@ -105,7 +106,7 @@
"father": "^2.29.1",
"husky": "^4.2.5",
"jest": "^26.0.1",
"jest-electron": "^0.1.7",
"jest-electron": "^0.1.12",
"jest-extended": "^0.11.2",
"jquery": "~3.5.1",
"lint-staged": "^10.2.11",
Expand All @@ -115,7 +116,7 @@
"stats-js": "1.0.1",
"ts-jest": "^24.1.0",
"ts-loader": "^7.0.3",
"typescript": "^4.6.3",
"typescript": "^5.3.2",
"webpack": "^4.41.4",
"webpack-cli": "^3.3.10",
"worker-loader": "^3.0.0"
Expand Down
5 changes: 2 additions & 3 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@antv/g-base": "^0.5.1",
"@antv/g-canvas": "^0.5.2",
"@antv/g-svg": "^0.5.2",
"@antv/g6-core": "0.8.23",
"@antv/g6-element": "0.8.23",
"@antv/g6-core": "workspace:*",
"@antv/g6-element": "workspace:*",
"@antv/matrix-util": "^3.1.0-beta.3",
"@antv/scale": "^0.3.4",
"@antv/util": "^2.0.9",
Expand Down Expand Up @@ -55,7 +55,6 @@
"event-simulate": "^1.0.1",
"father": "^2.30.0",
"jest": "^26.6.3",
"jest-electron": "^0.1.11",
"jquery": "^3.5.1",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
]
},
"dependencies": {
"@antv/g6-core": "^0.0.7",
"@antv/g6-core": "workspace:*",
"@antv/g-base": "^0.5.1",
"@types/yoga-layout": "^1.9.3",
"react": "^16.12.0",
Expand Down
9 changes: 5 additions & 4 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
},
"dependencies": {
"@ant-design/icons": "^4.0.6",
"@antv/algorithm": "^0.1.8",
"@antv/algorithm": "^0.1.26",
"@antv/chart-node-g6": "^0.0.3",
"@antv/dom-util": "^2.0.4",
"@antv/dumi-theme-antv": "^0.4.1",
"@antv/g6": "^4.8.20",
"@antv/g6-react-node": "workspace:*",
"@antv/hierarchy": "^0.6.10",
"@antv/g6-react-node": "^1.4.5",
"@antv/layout-wasm": "^1.3.4",
"@antv/util": "^2.0.9",
"@antv/vis-predict-engine": "^0.1.1",
Expand All @@ -51,9 +52,9 @@
"react-i18next": "^11.1.0",
"typedoc": "^0.17.6",
"typedoc-plugin-markdown": "^2.2.11",
"typescript": "^4.6.3"
"typescript": "^5.3.2"
},
"resolutions": {
"overrides": {
"@types/react": "^16.9.35"
}
}
Loading

0 comments on commit 9abaed7

Please sign in to comment.