Skip to content

Commit 77136fc

Browse files
committed
update npm to yarn
Signed-off-by: link <[email protected]>
1 parent a32997e commit 77136fc

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/dashboard/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"docker-prod:dev": "docker compose -f ./docker/docker-compose.yml up",
1212
"docker:build": "docker compose -f ./docker/docker-compose.dev.yml build",
1313
"docker:dev": "docker compose -f ./docker/docker-compose.dev.yml up",
14-
"docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro",
14+
"docker:push": "yarn docker-hub:build && yarn docker:tag && docker push antdesign/ant-design-pro",
1515
"docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro",
1616
"functions:build": "yarn run generateMock && netlify dev",
1717
"netlify:dev": "netlify dev",
1818
"generateMock": "node ./scripts/generateMock",
19-
"lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier",
19+
"lint": "eslint --ext .js src mock tests && yarn lint:style && yarn lint:prettier",
2020
"lint-staged": "lint-staged",
2121
"lint-staged:js": "eslint --ext .js",
2222
"lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less",
@@ -29,7 +29,7 @@
2929
"test": "umi test",
3030
"test:all": "node ./tests/run-tests.js",
3131
"test:component": "umi test ./src/components",
32-
"tslint": "npm run tslint:fix",
32+
"tslint": "yarn tslint:fix",
3333
"tslint:fix": "tslint --fix 'src/**/*.ts*'"
3434
},
3535
"husky": {
@@ -90,28 +90,28 @@
9090
"validator": "^13.7.0"
9191
},
9292
"devDependencies": {
93+
"glob":"^9.0.0",
9394
"@types/history": "^4.7.2",
9495
"@types/react": "^16.8.1",
9596
"@types/react-dom": "^16.0.11",
96-
"glob": "^9.0.0",
9797
"@umijs/preset-react": "^1.2.2",
9898
"antd-pro-merge-less": "^1.0.0",
9999
"antd-theme-webpack-plugin": "^1.2.0",
100-
"babel-eslint": "^10.0.1",
100+
"babel-eslint": "^10.1.0",
101101
"chalk": "^2.4.2",
102102
"check-prettier": "^1.0.1",
103103
"cross-env": "^5.2.0",
104104
"cross-port-killer": "^1.0.1",
105105
"enzyme": "^3.9.0",
106-
"eslint": "^5.13.0",
107-
"eslint-config-airbnb": "^17.1.0",
108-
"eslint-config-prettier": "^4.1.0",
109-
"eslint-plugin-babel": "^5.3.0",
110-
"eslint-plugin-compat": "^2.6.3",
111-
"eslint-plugin-import": "2.20.1",
112-
"eslint-plugin-jsx-a11y": "^6.2.1",
113-
"eslint-plugin-markdown": "^2.2.0",
114-
"eslint-plugin-react": "^7.12.4",
106+
"eslint": "^8.57.1",
107+
"eslint-config-airbnb": "^19.0.4",
108+
"eslint-config-prettier": "^9.0.0",
109+
"eslint-plugin-babel": "^6.0.0",
110+
"eslint-plugin-compat": "^4.0.0",
111+
"eslint-plugin-import": "2.31.0",
112+
"eslint-plugin-jsx-a11y": "^6.8.0",
113+
"eslint-plugin-markdown": "^3.0.0",
114+
"eslint-plugin-react": "^7.32.2",
115115
"faker": "^4.1.0",
116116
"gh-pages": "^6.1.1",
117117
"husky": "^4.2.5",

tests/dashboard/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: '3.2'
22
services:
33
test-dashboard:
4-
image: node:14.18
4+
image: node:20.15
55
volumes:
66
- $ROOT_PATH/src/dashboard:/dashboard
77
working_dir: /dashboard
8-
command: bash -c "npm i && npm run lint"
8+
command: bash -c "yarn && yarn lint"

0 commit comments

Comments
 (0)