fix: make sure package.json is in te list of watched files
This commit is contained in:
parent
75d947de7f
commit
d707b08c48
1 changed files with 5 additions and 3 deletions
|
@ -112,12 +112,14 @@ export async function createSettings(config: AstroConfig, cwd?: string): Promise
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof tsconfig !== 'string') {
|
if (typeof tsconfig !== 'string') {
|
||||||
watchFiles = [tsconfig.tsconfigFile, ...(tsconfig.extended ?? []).map((e) => e.tsconfigFile)];
|
watchFiles.push(
|
||||||
|
...[tsconfig.tsconfigFile, ...(tsconfig.extended ?? []).map((e) => e.tsconfigFile)]
|
||||||
settings.watchFiles = watchFiles;
|
);
|
||||||
settings.tsConfig = tsconfig.tsconfig;
|
settings.tsConfig = tsconfig.tsconfig;
|
||||||
settings.tsConfigPath = tsconfig.tsconfigFile;
|
settings.tsConfigPath = tsconfig.tsconfigFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
settings.watchFiles = watchFiles;
|
||||||
|
|
||||||
return settings;
|
return settings;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue