fix: add fsevents as optional dep to fix install on Linux (#182)

fsevents is a macOS-only native module that comes as a transitive
optional dependency of playwright. On Linux, npm tries to build it
via node-gyp which fails fatally, breaking 'npm install -g gsd-pi'.

Adding fsevents as an explicit optionalDependency at the root level
ensures npm gracefully skips it on non-macOS platforms. This is the
standard pattern used by vite, webpack, and chokidar.
This commit is contained in:
Adam Dry 2026-03-13 14:48:14 +00:00 committed by GitHub
parent 9f58583888
commit c18f7d1f69
2 changed files with 6 additions and 0 deletions

3
package-lock.json generated
View file

@ -41,6 +41,9 @@
},
"engines": {
"node": ">=20.6.0"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
}
},
"node_modules/@anthropic-ai/sdk": {

View file

@ -75,6 +75,9 @@
"jiti": "^2.6.1",
"typescript": "^5.4.0"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
},
"overrides": {
"gaxios": "7.1.4"
}