Pkij is a streamlined CLI tool for monorepo management, enabling seamless building, testing, and publishing of NPM packages. With no dependencies, this utility injects external packages while maintaining synchronization with the source, allowing for flexible development workflows without continuous manual overhead. Explore efficient package management today.
pkij is a lightweight, single-file CLI utility specifically designed for efficient management of monorepos. With zero dependencies, pkij simplifies the complexities of building, testing, and publishing NPM packages within a monorepo structure while seamlessly handling inter-package dependencies, TypeScript configurations, and environment files.
Inject a package from an external repository into the current monorepo:
{
"inject": [
{"dir": "../awesome-tools/packages/cool-lib"}
]
}
Execute the injection with:
npx pkij --inject
Remove the injected package with:
npx pkij --eject
Pkij supports a variety of command-line arguments to enhance functionality:
--inject [path ...]: Specify package source config files or directory paths to inject.--eject [path ...]: Specify package source config files or directory paths to eject.--build [path ...]: Build specified packages, defaulting to all if none are specified.--test [path ...]: Run tests on specified packages.--publish [path ...]: Publish specified packages, defaulting to all in the NPM namespace if none are specified.--env [pathOrName ...]: Load specified environment configuration files.This versatile tool is designed to enhance workflow efficiency in monorepo development, offering a seamless experience for package management.
No comments yet.
Sign in to be the first to comment.