Skip to content

Commit a3d3da5

Browse files
msluszniakclaude
andcommitted
chore(deps): disable react-native-vision-camera install scripts
vision-camera 5.0.4 ships a buggy `postinstall: "tsc || exit 0"` that runs at install time. On CI Linux runners (where tsc is on PATH) the script invokes tsc with no args; tsc walks up to the monorepo root tsconfig.json (which has no outDir) and emits compiled .js files next to every .ts source across the monorepo. The `|| exit 0` swallows the error, so install "succeeds" — then yarn lint trips on the stray .js files via its `**/*.{js,ts,tsx}` glob and the whole CI run fails. It only manifests on PRs that bump vision-camera (or otherwise invalidate the per-version build state cache) AND on Linux. macOS hides the bomb because tsc isn't on PATH inside the postinstall scope, so the `|| exit 0` silently no-ops. Use Yarn's `dependenciesMeta.<pkg>.built: false` to opt out of vision-camera's install scripts entirely. The package ships pre-built `lib/` so the postinstall is redundant for consumers anyway. This is a local workaround. Tracking upstream fix at vision-camera (remove the postinstall, or rename it to prepare so it doesn't run for consumers). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 06d0f00 commit a3d3da5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@
3131
"prettier": "^3.3.3",
3232
"prettier-plugin-jsdoc": "^1.3.0",
3333
"typescript": "~5.9.2"
34+
},
35+
"dependenciesMeta": {
36+
"react-native-vision-camera": {
37+
"built": false
38+
}
3439
}
3540
}

yarn.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14491,6 +14491,9 @@ __metadata:
1449114491
prettier: "npm:^3.3.3"
1449214492
prettier-plugin-jsdoc: "npm:^1.3.0"
1449314493
typescript: "npm:~5.9.2"
14494+
dependenciesMeta:
14495+
react-native-vision-camera:
14496+
built: false
1449414497
languageName: unknown
1449514498
linkType: soft
1449614499

0 commit comments

Comments
 (0)