use-pnpm 0.0.1

pnpm workspace and command primitives for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
use use_pnpm::{PnpmCommand, PnpmFilter, PnpmLockfile};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    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(())
}