As legacy-peer-deps is specified in .npmrc, install-legacy and update-legacy are not actually needed.

This commit is contained in:
Louis Lam 2022-05-01 12:32:06 +08:00
parent 254a6bfd36
commit 63c8d24d6f
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm run install-legacy
- run: npm install
- run: npm run build
- run: npm test
env:
@ -47,5 +47,5 @@ jobs:
with:
node-version: 16
cache: 'npm'
- run: npm run install-legacy
- run: npm install
- run: npm run lint

View File

@ -10,8 +10,8 @@
"node": "14.* || >=16.*"
},
"scripts": {
"install-legacy": "npm install --legacy-peer-deps",
"update-legacy": "npm update --legacy-peer-deps",
"install-legacy": "npm install",
"update-legacy": "npm update",
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
"lint-fix:js": "eslint --ext \".js,.vue\" --fix --ignore-path .gitignore .",
"lint:style": "stylelint \"**/*.{vue,css,scss}\" --ignore-path .gitignore",