mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 06:50: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, {
|
return this.compile(modTypeScriptFiles, {
|
||||||
noEmitOnError: true,
|
noEmitOnError: true,
|
||||||
noImplicitAny: false,
|
noImplicitAny: false,
|
||||||
target: ScriptTarget.ES2022,
|
target: ScriptTarget.ESNext,
|
||||||
module: ModuleKind.CommonJS,
|
module: ModuleKind.Preserve,
|
||||||
moduleResolution: ModuleResolutionKind.Node10,
|
moduleResolution: ModuleResolutionKind.NodeNext,
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
resolveJsonModule: true,
|
resolveJsonModule: true,
|
||||||
allowJs: true,
|
allowJs: true,
|
||||||
@ -67,6 +67,7 @@ export class ModCompilerService {
|
|||||||
downlevelIteration: true,
|
downlevelIteration: true,
|
||||||
experimentalDecorators: true,
|
experimentalDecorators: true,
|
||||||
emitDecoratorMetadata: true,
|
emitDecoratorMetadata: true,
|
||||||
|
isolatedModules: true,
|
||||||
rootDir: modPath,
|
rootDir: modPath,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,5 @@
|
|||||||
"@tests/*": ["./tests/*"]
|
"@tests/*": ["./tests/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/*", "src/**/*"]
|
"include": ["src/*", "src/**/*", "./user/mods/**/*"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user