Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jan 22, 2024
1 parent 335b567 commit 7fbb32d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ const run = async () => {
};
} catch (error) {
console.error(`Failed to sync ${path}`, error);
const cacheManifest: PluginMainifest = readJSON(resolve(dirPath, 'manifest.json'));
expireList.push(cacheManifest.name_for_model);
console.warn(`Add ${path} to expire list`);
if (existsSync(resolve(dirPath, 'manifest.json'))) {
const cacheManifest: PluginMainifest = readJSON(resolve(dirPath, 'manifest.json'));
expireList.push(cacheManifest.name_for_model);
console.warn(`Add ${path} to expire list`);
}
}
},
{ concurrency: 5 },
Expand Down

0 comments on commit 7fbb32d

Please sign in to comment.