diff --git a/packages/astro/src/core/config/settings.ts b/packages/astro/src/core/config/settings.ts index e598dfd6a..96cdcbe21 100644 --- a/packages/astro/src/core/config/settings.ts +++ b/packages/astro/src/core/config/settings.ts @@ -27,7 +27,7 @@ export function createSettings(config: AstroConfig, cwd?: string): AstroSettings const watchFiles = tsconfig?.exists ? [tsconfig.path, ...tsconfig.extendedPaths] : []; - if(cwd) { + if (cwd) { watchFiles.push(fileURLToPath(new URL('./package.json', pathToFileURL(cwd)))); }