mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 02:30:43 -05:00
Mod fixes (#1080)
Changes the following: - New targets, module and moduleResolution for mods - Enables `isolatedModules` as this matches the SPT server. - Includes user/mods in tsconfig.json to allow for mods to be loaded when a debugger is attached.
This commit is contained in:
parent
4baab4e3f5
commit
a285cd3985
@ -57,9 +57,9 @@ export class ModCompilerService {
|
||||
return this.compile(modTypeScriptFiles, {
|
||||
noEmitOnError: true,
|
||||
noImplicitAny: false,
|
||||
target: ScriptTarget.ES2022,
|
||||
module: ModuleKind.CommonJS,
|
||||
moduleResolution: ModuleResolutionKind.Node10,
|
||||
target: ScriptTarget.ESNext,
|
||||
module: ModuleKind.Preserve,
|
||||
moduleResolution: ModuleResolutionKind.NodeNext,
|
||||
sourceMap: true,
|
||||
resolveJsonModule: true,
|
||||
allowJs: true,
|
||||
@ -67,6 +67,7 @@ export class ModCompilerService {
|
||||
downlevelIteration: true,
|
||||
experimentalDecorators: true,
|
||||
emitDecoratorMetadata: true,
|
||||
isolatedModules: true,
|
||||
rootDir: modPath,
|
||||
});
|
||||
}
|
||||
|
@ -17,5 +17,5 @@
|
||||
"@tests/*": ["./tests/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src/*", "src/**/*"]
|
||||
"include": ["src/*", "src/**/*", "./user/mods/**/*"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user