File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ export const getSyncPlan = async (
159159 cacheDir : resolvedCacheDir ,
160160 lockPath,
161161 lockExists,
162+ lockData,
162163 results,
163164 sources : filteredSources ,
164165 defaults,
@@ -219,10 +220,7 @@ export const runSync = async (options: SyncOptions, deps: SyncDeps = {}) => {
219220 let warningCount = 0 ;
220221 const plan = await getSyncPlan ( options , deps ) ;
221222 await mkdir ( plan . cacheDir , { recursive : true } ) ;
222- let previous : Awaited < ReturnType < typeof readLock > > | null = null ;
223- if ( plan . lockExists ) {
224- previous = await readLock ( plan . lockPath ) ;
225- }
223+ const previous = plan . lockData ;
226224 const requiredMissing = plan . results . filter ( ( result ) => {
227225 const source = plan . sources . find ( ( entry ) => entry . id === result . id ) ;
228226 return result . status === "missing" && ( source ?. required ?? true ) ;
You can’t perform that action at this time.
0 commit comments