Skip to content

Commit dbf1a99

Browse files
TimelordUKclaude
andcommitted
fix: add chai as explicit devDependency for legacy-peer-deps compat
chai is a peer dep of chai-as-promised but legacy-peer-deps=true causes npm to skip auto-installing peer deps. Adding it explicitly fixes the "Cannot find module 'chai'" error in Linux CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4e0e422 commit dbf1a99

2 files changed

Lines changed: 14 additions & 18 deletions

File tree

package-lock.json

Lines changed: 12 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"prebuild-install": "^7.1.3"
4242
},
4343
"devDependencies": {
44-
"env-cmd": "^11.0.0",
4544
"@types/chai": "^5.2.3",
4645
"@types/chai-as-promised": "^8.0.2",
4746
"@types/mocha": "^10.0.10",
@@ -51,10 +50,12 @@
5150
"@types/sinon": "^21.0.0",
5251
"@typescript-eslint/eslint-plugin": "^6.21.0",
5352
"@typescript-eslint/parser": "^6.21.0",
53+
"chai": "^4.5.0",
5454
"chai-as-promised": "^8.0.2",
5555
"dotenv": "^17.2.3",
5656
"electron": "^39.2.7",
5757
"electron-rebuild": "^3.2.9",
58+
"env-cmd": "^11.0.0",
5859
"eslint": "^8.57.1",
5960
"eslint-config-standard": "^17.1.0",
6061
"eslint-config-standard-with-typescript": "^43.0.1",

0 commit comments

Comments
 (0)