Skip to content

RuntimesModule

@tsed/cli

Usage

typescript
import { RuntimesModule } from "@tsed/cli";

See /packages/cli/src/runtimes/RuntimesModule.ts.

Overview

ts
class RuntimesModule {
    protected projectPackageJson: ProjectPackageJson;
    constructor();
    init(ctx: RuntimeInitOptions): void;
    list(): string[];
    get(name?: string): BaseRuntime;
    scripts(ctx: RuntimeInitOptions): {
        build: string;
        barrels: string;
        start: string;
        "start:prod": string;
    };
}

protected projectPackageJson

ts
protected projectPackageJson: ProjectPackageJson;

init

ts
init(ctx: RuntimeInitOptions): void;

list

ts
list(): string[];

get

ts
get(name?: string): BaseRuntime;

scripts

ts
scripts(ctx: RuntimeInitOptions): {
     build: string;
     barrels: string;
     start: string;
     "start:prod": string;
 };

Released under the MIT License.