77
88import * as path from "node:path" ;
99import type {
10- RemoteBuildCachePlugin ,
11- ResolveRemoteBuildCacheProps ,
12- UploadRemoteBuildCacheProps ,
10+ BuildCacheProviderPlugin ,
11+ ResolveBuildCacheProps ,
12+ UploadBuildCacheProps ,
1313} from "@expo/config" ;
1414import * as fs from "fs-extra" ;
1515import { downloadAndMaybeExtractAppAsync } from "./download" ;
@@ -21,7 +21,7 @@ import { getBuildCacheDirectory, isDevClientBuild } from "./utils";
2121/**
2222 * Resolves and retrieves a cached build from GitHub if available
2323 *
24- * @param {ResolveRemoteBuildCacheProps } props - Build context properties from Expo
24+ * @param {ResolveBuildCacheProps } props - Build context properties from Expo
2525 * @param {object } githubConfig - GitHub repository configuration
2626 * @param {string } githubConfig.owner - Repository owner/organization name
2727 * @param {string } githubConfig.repo - Repository name
@@ -33,7 +33,7 @@ const fetchCachedBuild = async (
3333 platform,
3434 fingerprintHash,
3535 runOptions,
36- } : ResolveRemoteBuildCacheProps ,
36+ } : ResolveBuildCacheProps ,
3737 { owner, repo } : { owner : string ; repo : string } ,
3838) : Promise < string | null > => {
3939 if ( ! runOptions . buildCache ) {
@@ -141,7 +141,7 @@ const publishBuildCache = async (
141141 runOptions,
142142 buildPath,
143143 platform,
144- } : UploadRemoteBuildCacheProps ,
144+ } : UploadBuildCacheProps ,
145145 { owner, repo } : { owner : string ; repo : string } ,
146146) : Promise < string | null > => {
147147 logger . startSpinner ( "Uploading build to Github Releases" ) ;
@@ -213,7 +213,7 @@ function getCachedAppPath({
213213 platform,
214214 projectRoot,
215215 runOptions,
216- } : ResolveRemoteBuildCacheProps ) : string {
216+ } : ResolveBuildCacheProps ) : string {
217217 return path . join (
218218 getBuildCacheDirectory ( ) ,
219219 `${ getTagName ( { fingerprintHash, projectRoot, runOptions, platform } ) } .${ platform === "ios" ? "app" : "apk" } ` ,
@@ -223,4 +223,4 @@ function getCachedAppPath({
223223export default {
224224 resolveRemoteBuildCache : fetchCachedBuild ,
225225 uploadRemoteBuildCache : publishBuildCache ,
226- } satisfies RemoteBuildCachePlugin ;
226+ } satisfies BuildCacheProviderPlugin ;
0 commit comments