What is @lerna/list?
@lerna/list is a part of the Lerna monorepo management toolset. It is used to list all the packages in a Lerna-managed monorepo. This can be useful for various tasks such as auditing, documentation, and automation scripts.
What are @lerna/list's main functionalities?
List all packages
This feature allows you to list all the packages in your Lerna-managed monorepo. The code sample demonstrates how to use the `list` function to retrieve and print the list of packages.
const { list } = require('@lerna/list');
list().then(packages => console.log(packages));
List packages with specific attributes
This feature allows you to filter the list of packages based on specific attributes such as scope. The code sample demonstrates how to list packages that match a specific scope.
const { list } = require('@lerna/list');
list({ scope: '@my-scope/*' }).then(packages => console.log(packages));
List private packages
This feature allows you to list only the private packages in your monorepo. The code sample demonstrates how to list packages that are marked as private.
const { list } = require('@lerna/list');
list({ private: true }).then(packages => console.log(packages));
Other packages similar to @lerna/list
lerna
Lerna is a tool for managing JavaScript projects with multiple packages. It offers a broader range of functionalities compared to @lerna/list, including versioning, publishing, and dependency management.
pnpm
pnpm is a fast, disk space-efficient package manager. It also supports monorepos and offers functionalities similar to Lerna, such as linking local packages and managing dependencies.