Files
orca/mobile/fingerprint.config.js
T
Neil 4b347681bc feat(mobile): skip dev-client rebuilds when the Expo native fingerprint is unchanged (#33410)
Add `pnpm native ensure <ios|android>`, which installs a cached dev-client
build keyed by the Expo fingerprint and only runs `expo run` on a miss.
The cache lives in the user cache dir so every worktree shares it, and
app.config.js registers it as Expo's buildCacheProvider so plain
`expo run` reuses hits too. A report-only PR job flags fingerprint
changes against the base in the step summary.
2026-10-24 23:08:43 -07:00

15 lines
756 B
JavaScript

// pnpm installs the local native package under node_modules/.pnpm, which the fingerprint skips as a
// nested node_modules; hash its sources here so native edits to it still invalidate builds.
const localNativePackageSources = ['android', 'ios', 'expo-module.config.json'].map((entry) => ({
type: entry.includes('.') ? 'file' : 'dir',
filePath: `packages/expo-two-way-audio/${entry}`,
reasons: ['localNativePackage']
}))
module.exports = {
extraSources: localNativePackageSources,
// These never change native code but would force a dev-client rebuild: package.json scripts,
// .gitignore, and the version/build numbers that release bump PRs and fastlane rewrite.
sourceSkips: ['PackageJsonScriptsAll', 'GitIgnore', 'ExpoConfigVersions']
}