Skip to content

Instantly share code, notes, and snippets.

@squidfunk
Last active December 2, 2021 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squidfunk/932be7f6a82a09c4db46466b7cbe3c2e to your computer and use it in GitHub Desktop.
Save squidfunk/932be7f6a82a09c4db46466b7cbe3c2e to your computer and use it in GitHub Desktop.
Retrieve lerna packages programmatically
const { Project } = require("@lerna/project")
const packages = Project.getPackagesSync("path/to/lerna.json")
console.log(packages)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment