Skip to content

Commit 2ccbb0e

Browse files
committed
add an import alias
this allows using types/path/to/Class without adding one or multiple ../ infront
1 parent b6f7556 commit 2ccbb0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/de/blazemcworld/jsscripts/TypingGen.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public static void genTypesIn(String targets) {
3838
Files.writeString(out.resolve("jsconfig.json"), """
3939
{
4040
"compilerOptions": {
41-
"typeRoots": ["types/global.d.ts"]
41+
"typeRoots": ["types/global.d.ts"],
42+
"paths": {
43+
"types/*": ["./types/*"]
44+
}
4245
}
4346
}
4447
""");

0 commit comments

Comments
 (0)