How to use @lerna/listable - 4 common examples

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);
    });
github lerna / lerna / commands / list / command.js View on Github external
exports.builder = yargs => {
  listable.options(yargs);

  return filterable(yargs);
};
github lerna / lerna / commands / changed / command.js View on Github external
"ignore-changes": {
      describe: [
        "Ignore changes in files matched by glob(s) when detecting changed packages.",
        "Pass --no-ignore-changes to completely disable.",
      ].join("\n"),
      type: "array",
    },
    "include-merged-tags": {
      describe: "Include tags from merged branches when detecting changed packages.",
      type: "boolean",
    },
  };

  yargs.options(opts).group(Object.keys(opts), "Command Options:");

  return listable.options(yargs, "Output 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