Skip to content

Commit

Permalink
fix watch file
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Dec 12, 2024
1 parent 3652b36 commit d95af37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/addon-dev/src/rollup-public-entrypoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function publicEntrypoints(args: {
matches.forEach((m) => allEntryPoints.add(m));

for (const name of allEntryPoints) {
this.addWatchFile(path.join(args.srcDir, name));
this.addWatchFile(path.resolve(args.srcDir, name));
}

for (let name of matches) {
Expand Down
2 changes: 1 addition & 1 deletion tests/scenarios/v2-addon-dev-watch-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Scenarios.fromProject(() => baseV2Addon())
//
// the `stat` is measured in `ms`, so it's still pretty fast
await fs.rm(demoHbs);
await aBit(20);
await aBit(150);
await watcher?.nextBuild();
await aBit(150);
},
Expand Down

0 comments on commit d95af37

Please sign in to comment.