Skip to content

Commit 32383e1

Browse files
committed
[Tests] use --legacy-peer-deps for npm 7
This is needed because we test on eslint < 5, and `@typescript-eslint/parser` has peer dep requirements of eslint >= 5. See ljharb/eslint-plugin-import@b1aef78
1 parent 9ef1213 commit 32383e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/node-4+.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- uses: ljharb/actions/node/run@main
6161
name: 'npm install && npm run tests-only'
6262
with:
63-
after_install: npm install --no-save "eslint@${{ matrix.eslint }}"
63+
after_install: NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
6464
node-version: ${{ matrix.node-version }}
6565
command: 'unit-test'
6666
after_success: 'npm run coveralls'

0 commit comments

Comments
 (0)