mirror of
https://github.com/chenasraf/github-repos-astro-loader.git
synced 2026-05-17 17:38:06 +00:00
fix: clear cache on overrides change
This commit is contained in:
@@ -60,6 +60,7 @@ export function githubProjectsLoader(opts: LoaderOptionsType): Loader {
|
||||
watcher?.on('change', async (filename) => {
|
||||
if (path.dirname(filename) === (opts.overridesDir ?? defaultOverridesDir)) {
|
||||
logger.log('Change detected:', filename)
|
||||
meta.delete('lastUpdated')
|
||||
await reloadProjects({ store, meta }, opts)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user