Skip to content

Commit

Permalink
Dont reload config file when package.json change is detected
Browse files Browse the repository at this point in the history
Fixes #48315
  • Loading branch information
sheetalkamat committed Apr 27, 2022
1 parent bab02d2 commit 9a6bc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/tsbuildPublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ namespace ts {
{
createNewValue: (path, _input) => state.watchFile(
path,
() => invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.Full),
() => invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.None),
PollingInterval.High,
parsed?.watchOptions,
WatchType.PackageJson,
Expand Down

0 comments on commit 9a6bc80

Please sign in to comment.