fix: typescript transpiler misbehaving

This commit is contained in:
2025-05-22 12:08:41 +03:00
parent a1a2293af4
commit ecfd80f36a
2 changed files with 7 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ public class Reading {
}
public static InputStream resourceToStream(String name) {
return Reading.class.getResourceAsStream("/" + name);
return Reading.class.getResourceAsStream("/" + name.replaceAll("//", "/"));
}
public static String resourceToString(String name) {
return streamToString(resourceToStream(name));

View File

@@ -18,7 +18,7 @@ export default function typescript(next: Compiler): Compiler {
module: ModuleKind.Preserve,
allowImportingTsExtensions: true,
verbatimModuleSyntax: true,
verbatimModuleSyntax: false,
strict: false,
skipLibCheck: true,