zuke.tools.pnpm
@zuke/pnpm 1.2.0: @zuke/pnpm — typed PnpmTasks wrappers for the pnpm CLI, for use in Zuke build targets (including builds that drive Node/workspace projects).
zuke on PyPI ↗ 8 symbols
Symbols
class PnpmAddSettings(PnpmSettings) Settings for pnpm add.
-
packages(*specs: str) -> SelfPackage specs to add (required).
-
save_dev() -> SelfSave to devDependencies (
--save-dev). -
save_exact() -> SelfPin the exact version (
--save-exact). -
global_() -> SelfInstall globally (
--global).
class PnpmDlxSettings(PnpmSettings) Settings for pnpm dlx.
-
command(name: str) -> SelfThe command to execute (required).
-
package(spec: str) -> SelfThe package providing the command (
--package=). -
exec_args(*args: str | float) -> SelfArguments forwarded to the command.
class PnpmInstallSettings(PnpmSettings) Settings for pnpm install.
-
frozen_lockfile() -> SelfFail if the lockfile is out of date (
--frozen-lockfile). -
prod() -> SelfInstall without devDependencies (
--prod).
class PnpmPublishSettings(PnpmSettings) Settings for pnpm publish.
-
tag(name: str) -> SelfPublish under a dist-tag (
--tag=). -
access(level: Literal['public', 'restricted']) -> SelfSet the package access level (
--access=). -
no_git_checks() -> SelfSkip the clean-working-tree checks (
--no-git-checks). -
dry_run() -> SelfReport what would be published without uploading (
--dry-run).
class PnpmRemoveSettings(PnpmSettings) Settings for pnpm remove.
-
packages(*names: str) -> SelfPackage names to remove (required).
class PnpmRunSettings(PnpmSettings) Settings for pnpm run.
-
script(name: str) -> SelfThe package.json script to run (required).
-
filter(pattern: str) -> SelfRestrict to matching workspace packages (
--filter). -
if_present() -> SelfDo not fail when the script is missing (
--if-present). -
script_args(*args: str | float) -> SelfArguments forwarded to the script.
class PnpmSettings(ToolSettings) Base for all pnpm subcommand settings: binary is pnpm from PATH.
class PnpmTasks Typed task functions for the pnpm CLI.
-
static async install(ctx: ServiceContext, configure: Callable[[PnpmInstallSettings], PnpmInstallSettings] | None=None) -> ExecResultInstall dependencies:
pnpm install. -
static async add(ctx: ServiceContext, configure: Callable[[PnpmAddSettings], PnpmAddSettings] | None=None) -> ExecResultAdd dependencies:
pnpm add. -
static async remove(ctx: ServiceContext, configure: Callable[[PnpmRemoveSettings], PnpmRemoveSettings] | None=None) -> ExecResultRemove dependencies:
pnpm remove. -
static async run(ctx: ServiceContext, configure: Callable[[PnpmRunSettings], PnpmRunSettings] | None=None) -> ExecResultRun a package.json script:
pnpm run. -
static async dlx(ctx: ServiceContext, configure: Callable[[PnpmDlxSettings], PnpmDlxSettings] | None=None) -> ExecResultDownload and execute a package binary:
pnpm dlx. -
static async publish(ctx: ServiceContext, configure: Callable[[PnpmPublishSettings], PnpmPublishSettings] | None=None) -> ExecResultPublish the package:
pnpm publish.