We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccbb0e commit 71f316eCopy full SHA for 71f316e
src/main/java/de/blazemcworld/jsscripts/TypingGen.java
@@ -35,6 +35,10 @@ public static void genTypesIn(String targets) {
35
Path out = JsScripts.MC.runDirectory.toPath()
36
.resolve("JsScripts");
37
38
+ if (!out.toFile().exists()) {
39
+ out.toFile().mkdirs();
40
+ }
41
+
42
Files.writeString(out.resolve("jsconfig.json"), """
43
{
44
"compilerOptions": {
@@ -48,6 +52,10 @@ public static void genTypesIn(String targets) {
48
52
49
53
out = out.resolve("types");
50
54
55
56
57
58
51
59
Files.writeString(out.resolve("global.d.ts"), """
60
declare const script: import("../types/de/blazemcworld/jsscripts/Script").default;
61
""");
0 commit comments