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
Global
Uses npm's global install prefix.
public bool Global { get; init; }Property Value
PackageLockOnly
Writes only the lockfile without installing dependencies.
public bool PackageLockOnly { get; init; }Property Value
Packages
Package specifications to add; empty installs the current project.
public IReadOnlyList<string> Packages { get; init; }Property Value
SaveDev
Saves added packages as development dependencies.
public bool SaveDev { get; init; }Property Value
SaveExact
Saves exact versions rather than ranges.
public bool SaveExact { get; init; }