Skip to main content

Lerna driver

Provides Lerna support by dynamically generating a lerna.json config file.

Requirements#

  • Lerna ^3.0.0 || ^4.0.0

Installation#

In your configuration module, install the driver and Lerna.

yarn add @beemo/driver-lerna lerna

Create a file at configs/lerna.ts (or js) in which to house your Lerna configuration.

configs/lerna.ts
import { LernaConfig } from '@beemo/driver-lerna';
const config: LernaConfig = {
version: 'independent',
npmClient: 'yarn',
useWorkspaces: true,
// ...
};
export default config;

Integration#

In your consuming project, enable the driver by adding lerna to your drivers config.

.config/beemo.ts
import { BeemoConfig } from '@beemo/core';
const config: BeemoConfig = {
module: '<config-module>',
drivers: ['lerna'],
};
export default config;