use-pnpm 0.0.1

pnpm workspace and command primitives for RustUse
Documentation
  • Coverage
  • 42.86%
    9 out of 21 items documented1 out of 11 items with examples
  • Size
  • Source code size: 6.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 644.23 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-js
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-pnpm

pnpm workspace and command primitives for RustUse.

Experimental

use-pnpm is experimental while use-js remains below 0.3.0.

Example

use use_pnpm::{PnpmCommand, PnpmFilter, PnpmLockfile};

let filter = PnpmFilter::new("./packages/app")?;

assert_eq!(filter.as_str(), "./packages/app");
assert_eq!("install".parse::<PnpmCommand>()?, PnpmCommand::Install);
assert_eq!(PnpmLockfile::Workspace.as_str(), "pnpm-lock.yaml");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

  • pnpm command labels.
  • Workspace, lockfile, and filter metadata.

Non-goals

  • Running pnpm.
  • Workspace graph resolution.
  • Lockfile parsing.

License

Licensed under either Apache-2.0 or MIT.