How to use @lerna/publish - 1 common examples

To help you get started, we’ve selected a few @lerna/publish examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github telus / tds-core / scripts / prePr.js View on Github external
const argv = require('yargs').argv

const chalk = require('chalk')
const emoji = require('node-emoji')

const { PublishCommand } = require('@lerna/publish')

  Adapted from:

  * WARNING! This interface is changing in lerna v3 and will need to be updated when we upgrade lerna.
const publishCommand = new PublishCommand(argv._, argv, argv._cwd)

publishCommand.initialize(() => {
    )} If this is not what you expected, ensure that your commit messages follow the Conventional Commits specification (${chalk.underline(
    )}) and try again.`
    )} Please paste the entire output of this task into the body of your Pull Request so that a maintainer can verify before merging/publishing.`


Publish packages in the current project

Latest version published 23 days ago

Package Health Score

98 / 100
Full package analysis

Popular @lerna/publish functions