Skip to content

Commit

Permalink
fix: Should ignore the mods folder during watch
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Dec 13, 2023
1 parent b072424 commit bde111b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmcl-runtime/mod/InstanceModsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class InstanceModsService extends AbstractService implements IInstanceMod
state.mods = await scan(basePath)

const watcher = watch(basePath, async (event, filePath) => {
if (shouldIgnoreFile(filePath)) return
if (shouldIgnoreFile(filePath) && filePath !== basePath) return
if (event === 'update') {
const [resource] = await this.resourceService.importResources([{ path: filePath, domain: ResourceDomain.Mods }], true)
if (isModResource(resource)) {
Expand Down

0 comments on commit bde111b

Please sign in to comment.