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
IncludeWorkspaceRoot
Includes the workspace root when workspace selection is active.
public bool IncludeWorkspaceRoot { get; init; }Property Value
WorkspaceParts
Renders workspace options in npm's canonical order.
protected IReadOnlyList<string?> WorkspaceParts { get; }Property Value
Workspaces
Workspace names in which npm runs the command.
public IReadOnlyList<string> Workspaces { get; init; }Property Value
Methods
ValidateWorkspaces()
Rejects npm's mutually exclusive named and all-workspace selectors.
protected void ValidateWorkspaces()