Table of Contents

Class NpmInstallCommand

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Shared options for npm install operations.

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

Inheritance

Derived

Implements

Properties

Audit

Controls audit submission; null leaves npm configuration unchanged.

public bool? Audit { get; init; }

Property Value

bool?

DryRun

Reports intended changes without applying them.

public bool DryRun { get; init; }

Property Value

bool

ForegroundScripts

Runs lifecycle scripts in the foreground.

public bool ForegroundScripts { get; init; }

Property Value

bool

Fund

Controls funding notices; null leaves npm configuration unchanged.

public bool? Fund { get; init; }

Property Value

bool?

IgnoreScripts

Skips package lifecycle scripts.

public bool IgnoreScripts { get; init; }

Property Value

bool

Include

Dependency types included on disk.

public IReadOnlyList<NpmDependencyType> Include { get; init; }

Property Value

IReadOnlyList<NpmDependencyType>

InstallParts

Renders shared install options.

protected IReadOnlyList<string?> InstallParts { get; }

Property Value

IReadOnlyList<string?>

InstallStrategy

Controls npm's dependency layout.

public NpmInstallStrategy? InstallStrategy { get; init; }

Property Value

NpmInstallStrategy?

Omit

Dependency types omitted from disk.

public IReadOnlyList<NpmDependencyType> Omit { get; init; }

Property Value

IReadOnlyList<NpmDependencyType>

StrictPeerDependencies

Fails on conflicting peer dependencies.

public bool StrictPeerDependencies { get; init; }

Property Value

bool