Table of Contents

Class NpmPack

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Creates an npm package tarball.

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

Inheritance

Implements

Properties

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

Destination

Directory in which npm writes the tarball.

public string? Destination { get; init; }

Property Value

string?

DryRun

Reports pack contents without writing a tarball.

public bool DryRun { get; init; }

Property Value

bool

IgnoreScripts

Skips package lifecycle scripts.

public bool IgnoreScripts { get; init; }

Property Value

bool

Json

Requests npm's JSON output.

public bool Json { get; init; }

Property Value

bool

Package

Package specification to pack; null packs the current project.

public string? Package { get; init; }

Property Value

string?