Skip to main content
The Deno 2 Release Candidate is here
Learn more
class ModCompilerService
import { ModCompilerService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";

Constructors

new
ModCompilerService(
logger: ILogger,
modHashCacheService: ModHashCacheService,
vfs: VFS,
)

Properties

protected
logger: ILogger
protected
modHashCacheService: ModHashCacheService
protected
serverDependencies: string[]
protected
vfs: VFS

Methods

protected
areFilesReady(fileNames: string[]): boolean

Do the files at the provided paths exist

protected
compile(fileNames: string[], options: ts.CompilerOptions): Promise<void>

Convert a TS file into JS

protected
delay(ms: number): Promise<unknown>

Wait the provided number of milliseconds

compileMod(
modName: string,
modPath: string,
modTypeScriptFiles: string[],
): Promise<void>

Convert a mods TS into JS