How to use the @lerna/listable.format function in @lerna/listable

To help you get started, we’ve selected a few @lerna/listable 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 lerna / lerna / commands / changed / index.js View on Github external
// provide artificial --conventional-commits so --conventional-graduate works
      this.options.conventionalCommits = true;

      if (this.options.forcePublish) {
        this.logger.warn("option", "--force-publish superseded by --conventional-graduate");
      }
    }

    const updates = collectUpdates(
      this.packageGraph.rawPackageList,
      this.packageGraph,
      this.execOpts,
      this.options
    );

    this.result = listable.format(
      updates.map(node => node.pkg),
      this.options
    );

    if (this.result.count === 0) {
      this.logger.info("", "No changed packages found");

      process.exitCode = 1;

      // prevents execute()
      return false;
    }
  }
github lerna / lerna / commands / list / index.js View on Github external
chain = chain.then(filteredPackages => {
      this.result = listable.format(filteredPackages, this.options);
    });

@lerna/listable

Shared logic for listing package information

MIT
Latest version published 1 year ago

Package Health Score

70 / 100
Full package analysis

Popular @lerna/listable functions