Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Jan 31, 2024
1 parent 3e2be5d commit 6a8467f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/contented/src/commands/GenerateCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export class GenerateCommand extends BaseCommand {
config.processor.outDir = config.processor.outDir ?? '.contented';

const processor = new ContentedProcessor(config.processor);
const walker = new ContentedWalker(processor);
const walker = new ContentedWalker(this.context, processor);
await walker.walk();

if (this.watch) {
const watcher = new ContentedWatcher(processor);
const watcher = new ContentedWatcher(this.context, processor);
await watcher.watch();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/contented/src/commands/WatchCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class WatchCommand extends BaseCommand {
const config = await this.loadConfig();
const processor = new ContentedProcessor(config.processor);

const watcher = new ContentedWatcher(processor);
const watcher = new ContentedWatcher(this.context, processor);
await watcher.watch();
}
}
2 changes: 1 addition & 1 deletion packages/contented/src/commands/WriteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class WriteCommand extends BaseCommand {
const config = await this.loadConfig();
const processor = new ContentedProcessor(config.processor);

const watcher = new ContentedWatcher(processor);
const watcher = new ContentedWatcher(this.context, processor);
await watcher.watch();

const preview = new ContentedPreview(config.preview);
Expand Down

0 comments on commit 6a8467f

Please sign in to comment.