Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@lerna/bootstrap
Advanced tools
@lerna/bootstrap is a part of the Lerna monorepo management toolset. It is used to install and link dependencies for a multi-package repository, ensuring that all inter-package dependencies are properly resolved and symlinked.
Install dependencies
This feature installs all the dependencies for the packages in the monorepo. It uses the npm client and hoists common dependencies to the root node_modules directory.
const { bootstrap } = require('@lerna/bootstrap');
bootstrap({
cwd: process.cwd(),
npmClient: 'npm',
hoist: true
}).then(() => {
console.log('Dependencies installed and linked');
});
Link local packages
This feature links local packages together, ensuring that inter-package dependencies are resolved using symlinks. This is useful for development as changes in one package are immediately reflected in dependent packages.
const { bootstrap } = require('@lerna/bootstrap');
bootstrap({
cwd: process.cwd(),
npmClient: 'npm',
hoist: true
}).then(() => {
console.log('Local packages linked');
});
Run lifecycle scripts
This feature runs specified lifecycle scripts (e.g., prepublish, postinstall) for all packages in the monorepo. This ensures that any necessary build steps or other setup tasks are performed.
const { bootstrap } = require('@lerna/bootstrap');
bootstrap({
cwd: process.cwd(),
npmClient: 'npm',
hoist: true,
scripts: ['prepublish', 'postinstall']
}).then(() => {
console.log('Lifecycle scripts executed');
});
Yarn is a package manager that also supports monorepos through its workspaces feature. It installs dependencies and links local packages similarly to @lerna/bootstrap, but it is a more general-purpose tool with a broader scope.
pnpm is a fast, disk space-efficient package manager that also supports monorepos. It uses a content-addressable file system to store all files from all module directories on a disk. It is similar to @lerna/bootstrap in that it can install and link dependencies, but it offers additional performance benefits.
Rush is a monorepo management tool that provides sophisticated support for managing large repositories with many packages. It includes features for installing dependencies, linking local packages, and running lifecycle scripts, similar to @lerna/bootstrap, but it also offers advanced features like incremental builds and change tracking.
@lerna/bootstrap
description TODO
TODO
3.0.0-beta.12 (2018-03-30)
serialize()
method (fdec3ac)package
and packageJson
into manifest
(9a47ff7)Package
class no longer provides direct access to the JSON object
used to construct the instance. Map-like get()
/set(val)
methods are
available to modify the internal representation.<a name="3.0.0-beta.11"></a>
FAQs
Link local packages together and install remaining package dependencies
The npm package @lerna/bootstrap receives a total of 331,594 weekly downloads. As such, @lerna/bootstrap popularity was classified as popular.
We found that @lerna/bootstrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.