diff --git a/packages/addon-dev/src/rollup-public-entrypoints.ts b/packages/addon-dev/src/rollup-public-entrypoints.ts index 1844451f3..9ccdf9e00 100644 --- a/packages/addon-dev/src/rollup-public-entrypoints.ts +++ b/packages/addon-dev/src/rollup-public-entrypoints.ts @@ -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) { diff --git a/tests/scenarios/v2-addon-dev-watch-test.ts b/tests/scenarios/v2-addon-dev-watch-test.ts index 437c847c8..114152a3f 100644 --- a/tests/scenarios/v2-addon-dev-watch-test.ts +++ b/tests/scenarios/v2-addon-dev-watch-test.ts @@ -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); },