How to use the lerna.__commands__ function in lerna

To help you get started, we’ve selected a few lerna 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 fliphub / fliphub / playground / fliphub-1 / src / hubs / ScriptHub / pkg / Publisher.js View on Github external
constructor() {
    this.p = new lerna.__commands__.publish()
    this.p.updates = []
  }
github boopathi / babel-minify / utils / publish.js View on Github external
function runPublish(cb) {
  const PublishCommand = lerna.__commands__.publish;
  const flags = {
    skipNpm: true,
    skipGit: true,
  };
  const publish = new PublishCommand([], flags);
  publish.runValidations();
  publish.runPreparations();

  publish.initialize(function (err) {
    if (err) throw err;

    publish.updateUpdatedPackages();

    publish.updates.forEach(update => {
      const dir = update.package.location;
      const tag = 'latest';