Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lerna/project

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/project

Lerna project configuration

  • 5.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is @lerna/project?

@lerna/project is a part of the Lerna monorepo management toolset. It provides functionalities to manage and interact with the project structure in a monorepo setup. This includes reading and manipulating package.json files, managing dependencies, and handling versioning.

What are @lerna/project's main functionalities?

Reading Project Metadata

This feature allows you to read metadata about the project, such as the list of packages in the monorepo. The code sample demonstrates how to initialize a Project instance and retrieve the packages.

const { Project } = require('@lerna/project');
(async () => {
  const project = new Project();
  const projectMetadata = await project.getPackages();
  console.log(projectMetadata);
})();

Managing Dependencies

This feature helps in managing dependencies across the monorepo. The code sample shows how to get the dependency graph of the project.

const { Project } = require('@lerna/project');
(async () => {
  const project = new Project();
  const dependencies = await project.getDependencyGraph();
  console.log(dependencies);
})();

Handling Versioning

This feature allows you to handle versioning of the project. The code sample demonstrates how to retrieve the current version of the project.

const { Project } = require('@lerna/project');
(async () => {
  const project = new Project();
  const version = await project.getVersion();
  console.log(version);
})();

Other packages similar to @lerna/project

Keywords

FAQs

Package last updated on 07 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc