ts-checker-rspack-plugin 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -956,7 +956,9 @@ function createWatchCompilerHost(parsedConfig, createProgram, reportDiagnostic,
956
956
  afterProgramCreate (program) {
957
957
  if (afterProgramCreate) afterProgramCreate(program);
958
958
  },
959
- onWatchStatusChange () {},
959
+ onWatchStatusChange (...args) {
960
+ if (reportWatchStatus) reportWatchStatus(...args);
961
+ },
960
962
  watchFile: system.watchFile,
961
963
  watchDirectory: system.watchDirectory,
962
964
  setTimeout: system.setTimeout,
@@ -1020,7 +1022,9 @@ function useSolutionBuilder() {
1020
1022
  }, (diagnostic)=>{
1021
1023
  hostDiagnostics.push(diagnostic);
1022
1024
  updateDiagnostics(worker_config_config.configFile, hostDiagnostics);
1023
- }, void 0, void 0, void 0, (builderProgram)=>{
1025
+ }, (diagnostic)=>{
1026
+ if (6031 === diagnostic.code || 6032 === diagnostic.code) hostDiagnostics = [];
1027
+ }, void 0, void 0, (builderProgram)=>{
1024
1028
  const programConfigFile = getConfigFilePathFromBuilderProgram(builderProgram);
1025
1029
  const programDiagnostics = getDiagnosticsOfProgram(builderProgram);
1026
1030
  updateDiagnostics(programConfigFile, programConfigFile === worker_config_config.configFile ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-checker-rspack-plugin",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Runs typescript type checker and linter on separate process.",
5
5
  "keywords": [
6
6
  "rspack",