tessl install tessl/npm-lerna--init@6.6.0Create a new Lerna repo or upgrade an existing repo to the current version of Lerna
Agent Success
Agent success rate when using this tile
75%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.36x
Baseline
Agent success rate without this tile
55%
A Node.js tool that publishes packages from a monorepo with custom npm distribution tags for different release channels.
You are managing a JavaScript monorepo with multiple packages. You need to publish new versions of changed packages to npm using different distribution tags for different release channels (e.g., "beta", "next", "latest"). Distribution tags allow users to install specific release channels: npm install my-package@beta installs the beta version.
Build a Node.js module that:
Publishes changed packages with the default "latest" dist-tag.
Publishes changed packages with custom dist-tags for pre-releases or alternative channels.
Handles errors appropriately when publishing fails.
@generates
/**
* Publishes packages from a monorepo with a specified dist-tag
* @param {Object} options - Publishing options
* @param {string} options.distTag - The npm dist-tag to use for publishing
* @param {string} [options.cwd] - Working directory containing the monorepo (default: process.cwd())
* @returns {Promise<PublishResult>} Result of the publishing operation
*/
async function publishWithDistTag(options) {
// Implementation
}
/**
* Result of publishing operation
* @typedef {Object} PublishResult
* @property {boolean} success - Whether publishing succeeded
* @property {PackageInfo[]} packages - Information about published packages
* @property {string} [error] - Error message if publishing failed
*/
/**
* Information about a published package
* @typedef {Object} PackageInfo
* @property {string} name - Package name
* @property {string} version - Package version
* @property {string} distTag - Dist-tag used
*/
module.exports = { publishWithDistTag };Provides monorepo package management and publishing capabilities, including support for custom dist-tags.
@satisfied-by