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') {
|
||||
watchFiles = [tsconfig.tsconfigFile, ...(tsconfig.extended ?? []).map((e) => e.tsconfigFile)];
|
||||
|
||||
settings.watchFiles = watchFiles;
|
||||
watchFiles.push(
|
||||
...[tsconfig.tsconfigFile, ...(tsconfig.extended ?? []).map((e) => e.tsconfigFile)]
|
||||
);
|
||||
settings.tsConfig = tsconfig.tsconfig;
|
||||
settings.tsConfigPath = tsconfig.tsconfigFile;
|
||||
}
|
||||
|
||||
settings.watchFiles = watchFiles;
|
||||
|
||||
return settings;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue