From d95af370be5de1023a763fdb2a8d740d294cd650 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Thu, 12 Dec 2024 15:12:27 +0100 Subject: [PATCH] fix watch file --- packages/addon-dev/src/rollup-public-entrypoints.ts | 2 +- tests/scenarios/v2-addon-dev-watch-test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); },