Description: tsc workarounds
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1082689
Forwarded: not-needed
Last-Update: 2024-09-25

--- a/src/index.ts
+++ b/src/index.ts
@@ -268,6 +268,7 @@
     loaderContext._compiler?.options.plugins.some(
       plugin =>
         typeof plugin === 'object' &&
+// @ts-ignore
         plugin.constructor?.name === 'ForkTsCheckerWebpackPlugin'
     );
 
@@ -446,6 +447,7 @@
 
   addDependenciesFromSolutionBuilder(instance, filePath, addDependency);
 
+// @ts-ignore
   loaderContext._module!.buildMeta.tsLoaderDefinitionFileVersions =
     dependencies.map(
       defFilePath =>
--- a/src/instances.ts
+++ b/src/instances.ts
@@ -141,6 +141,7 @@
       error: makeError(
         loaderOptions,
         colors.red('error while reading tsconfig.json:' + EOL + message),
+// @ts-ignore
         file
       ),
     };
--- a/src/watch-run.ts
+++ b/src/watch-run.ts
@@ -103,6 +103,7 @@
         if (err) {
           reject(err);
         } else {
+// @ts-ignore
           const text = JSON.parse(source);
           updateFileWithText(instance, key, filePath, () => text);
           resolve();
