Commit a3d3da5
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14491 | 14491 | | |
14492 | 14492 | | |
14493 | 14493 | | |
| 14494 | + | |
| 14495 | + | |
| 14496 | + | |
14494 | 14497 | | |
14495 | 14498 | | |
14496 | 14499 | | |
| |||
0 commit comments