mirror of
https://github.com/stablyai/orca.git
synced 2026-11-01 09:37:33 +00:00
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.
15 lines
756 B
JavaScript
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']
|
|
}
|