Table of Contents

Class NpmInstall

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Installs project dependencies or adds package specifications.

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

Inheritance

Implements

Properties

CommandParts

Gets every canonically ordered rendered command fragment.

protected override IReadOnlyList<string?> CommandParts { get; }

Property Value

IReadOnlyList<string?>

Global

Uses npm's global install prefix.

public bool Global { get; init; }

Property Value

bool

PackageLockOnly

Writes only the lockfile without installing dependencies.

public bool PackageLockOnly { get; init; }

Property Value

bool

Packages

Package specifications to add; empty installs the current project.

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

Property Value

IReadOnlyList<string>

SaveDev

Saves added packages as development dependencies.

public bool SaveDev { get; init; }

Property Value

bool

SaveExact

Saves exact versions rather than ranges.

public bool SaveExact { get; init; }

Property Value

bool