@wpazderski/js-utils
    Preparing search index...

    Interface RunNpmScriptOptions

    Options for running an npm script.

    interface RunNpmScriptOptions {
        cwd?: string;
        errorBehavior?: "ignore" | "reject" | "consoleError";
        isWorkspaceScript: boolean;
        stdio?: "inherit" | "ignore";
    }
    Index

    Properties

    cwd?: string

    The current working directory from which the script will be run. If not specified, the current working directory of the process will be used.

    errorBehavior?: "ignore" | "reject" | "consoleError"

    Behavior when the script exits with a non-zero code.

    • "reject" (default): Rejects the promise with an error.
    • "consoleError": Logs an error message to the console but resolves the promise.
    • "ignore": Ignores the error and resolves the promise.
    isWorkspaceScript: boolean

    Whether the script is a workspace script.

    stdio?: "inherit" | "ignore"

    Determines how the child process will handle standard input/output streams.