Skip to main content

Crate changepacks_node

Crate changepacks_node 

Source
Expand description

§changepacks-node

Node.js project support for changepacks.

Implements project discovery, version management, and workspace detection for package.json files. Automatically detects the package manager (npm, pnpm, yarn, bun) by looking for lock files and provides appropriate publish commands for each.

Re-exports§

pub use finder::NodeProjectFinder;

Modules§

finder
package
workspace

Enums§

PackageManager
Represents the detected Node.js package manager

Functions§

detect_package_manager
Detects the package manager by checking for lock files in the given directory Priority: bun.lockb > pnpm-lock.yaml > yarn.lock > package-lock.json > npm (default)
detect_package_manager_recursive
Detects the package manager by searching from the given path up to the root