Table of Contents

Class NpmWorkspaceCommand

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Common npm workspace selection options.

public abstract record NpmWorkspaceCommand : ExecToolCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<NpmWorkspaceCommand>

Inheritance

Derived

Implements

Properties

AllWorkspaces

Runs the command in every configured workspace.

public bool AllWorkspaces { get; init; }

Property Value

bool

IncludeWorkspaceRoot

Includes the workspace root when workspace selection is active.

public bool IncludeWorkspaceRoot { get; init; }

Property Value

bool

WorkspaceParts

Renders workspace options in npm's canonical order.

protected IReadOnlyList<string?> WorkspaceParts { get; }

Property Value

IReadOnlyList<string?>

Workspaces

Workspace names in which npm runs the command.

public IReadOnlyList<string> Workspaces { get; init; }

Property Value

IReadOnlyList<string>

Methods

ValidateWorkspaces()

Rejects npm's mutually exclusive named and all-workspace selectors.

protected void ValidateWorkspaces()