Create a new Lerna repo or upgrade an existing repo to the current version of Lerna
75
Build a command-line tool that runs tasks across multiple packages in a monorepo with filtering and output aggregation capabilities.
Your tool should:
The tool accepts:
The tool returns:
@generates
/**
* Executes an npm script across multiple packages in a monorepo
*
* @param {string} scriptName - The npm script to run (e.g., "build", "test")
* @param {Object} options - Configuration options
* @param {string[]} [options.scope] - Package name patterns to include
* @param {string[]} [options.ignore] - Package name patterns to exclude
* @param {string} [options.cwd] - Working directory containing the monorepo
* @returns {Promise<{success: boolean, results: Array<{package: string, success: boolean, error?: string}>}>}
*/
async function runScript(scriptName, options) {
// IMPLEMENTATION HERE
}
module.exports = {
runScript
};Provides monorepo management and task execution capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-lerna--initdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10