Angular Modernizer
    Preparing search index...

    Interface PostTransformValidationConfig

    Configuration for post-transform validation.

    interface PostTransformValidationConfig {
        buildCommand?: string;
        buildTimeout?: number;
        cwd?: string;
        lintCommand?: string;
        lintTimeout?: number;
        signal?: AbortSignal;
        testCommand?: string;
        testTimeout?: number;
        validateBuild?: boolean;
        validateLint?: boolean;
        validateTests?: boolean;
    }
    Index

    Properties

    buildCommand?: string

    Custom build command. Default: build.command of the project's .angular-modernizer.json, else the detected build system (Angular CLI, Nx, Vite), else the build script of package.json.

    buildTimeout?: number

    Timeout for build command in milliseconds (default: 5 minutes).

    cwd?: string

    Working directory for command execution (default: auto-detect from file path).

    lintCommand?: string

    Custom lint command (default: auto-detect).

    lintTimeout?: number

    Timeout for lint command in milliseconds (default: 2 minutes).

    signal?: AbortSignal

    Aborts a running build, test or lint command (its whole process tree) and skips the commands after it.

    testCommand?: string

    Custom test command (default: auto-detect).

    testTimeout?: number

    Timeout for test command in milliseconds (default: 10 minutes).

    validateBuild?: boolean

    Whether to perform build validation (default: true).

    validateLint?: boolean

    Whether to perform lint validation (default: true).

    validateTests?: boolean

    Whether to perform test validation (default: false). Note: Tests can be slow, so disabled by default.