Skip to content

Commit

Permalink
Prevent watcher from crashing on first run (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc authored Aug 21, 2024
1 parent d99d151 commit 05aa222
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export class AtlaspackWatcherWatchmanJS implements Watcher {
await this.init(dir);

const response = await this.commandAsync(['clock', dir]);
fs.mkdirSync(path.dirname(snapshot), {recursive: true});
fs.writeFileSync(snapshot, response.clock, {
encoding: 'utf-8',
});
Expand Down

0 comments on commit 05aa222

Please sign in to comment.