Skip to content

Commit

Permalink
fix: add move to options type for cache util exposed to build plugins (
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored Jan 20, 2025
1 parent 79580ca commit c2843db
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion packages/build/src/types/options/netlify_plugin_cache_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export type NetlifyPluginCacheUtil = {
save(
path: Many<string>,
options?: {
/**
* @default `false`
*/
move?: boolean
ttl?: number
digests?: string[]
/**
Expand All @@ -15,6 +19,19 @@ export type NetlifyPluginCacheUtil = {
cwd?: string
},
): Promise<boolean>
restore(
path: Many<string>,
options?: {
/**
* @default `false`
*/
move?: boolean
/**
* @default `process.cwd()`
*/
cwd?: string
},
): Promise<boolean>
list(options?: {
/**
* @default `process.cwd()`
Expand All @@ -26,7 +43,7 @@ export type NetlifyPluginCacheUtil = {
depth?: number
}): Promise<string[]>
} & Record<
'restore' | 'remove' | 'has',
'remove' | 'has',
(
path: Many<string>,
options?: {
Expand Down

0 comments on commit c2843db

Please sign in to comment.