Skip to content

Commit

Permalink
fix: force install dependencies with --legacy-peer-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Assistant committed Oct 28, 2024
1 parent 973616b commit 17fd352
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ jobs:

- name: Install dependencies
run: |
# Remove existing lock file and clear cache
rm -f package-lock.json
# Remove lock file and node_modules to ensure clean install
rm -rf package-lock.json node_modules
npm cache clean --force
# Install dependencies with legacy peer deps to handle ESLint plugin conflicts
npm install --legacy-peer-deps
# Ensure electron is properly installed for the tests
# Install dependencies with legacy peer deps
npm install --legacy-peer-deps --force
# Rebuild electron
npm rebuild electron
# Run npm install again to ensure everything is properly linked
npm install --legacy-peer-deps --force
- name: Format check
run: npm run format:check || true

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"@types/react-syntax-highlighter": "^15.5.13",
"@types/react-table": "^7.7.20",
"@types/react-virtualized": "^9.21.29",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"@wdio/cli": "8.32.4",
"@wdio/cucumber-framework": "8.32.4",
"@wdio/local-runner": "8.32.4",
Expand All @@ -64,7 +64,7 @@
"electron-builder": "^24.13.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "39.1.1",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-prettier": "^5.2.1",
Expand Down

0 comments on commit 17fd352

Please sign in to comment.