Create a new Lerna repo or upgrade an existing repo to the current version of Lerna
75
{
"context": "This criteria evaluates how well the engineer uses Lerna's task caching and optimization capabilities to configure a monorepo for improved build performance. The focus is on properly utilizing Lerna's caching infrastructure, including cache configuration, task output definitions, and task dependency pipelines.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Lerna initialization",
"description": "Uses Lerna commands or APIs to initialize or configure the monorepo caching system (e.g., spawning 'lerna add-caching', 'lerna init', or programmatically configuring lerna.json/nx.json)",
"max_score": 25
},
{
"name": "Cache configuration file",
"description": "Creates or modifies nx.json or lerna.json to enable task caching with appropriate structure including targetDefaults or cacheableOperations",
"max_score": 20
},
{
"name": "Cacheable tasks definition",
"description": "Properly defines which tasks/scripts are cacheable by configuring target defaults or cacheable operations in the configuration (e.g., specifying 'build' and 'test' as cacheable targets)",
"max_score": 20
},
{
"name": "Task output patterns",
"description": "Specifies output patterns for cacheable tasks using the outputs property in nx.json targetDefaults (e.g., outputs: ['{projectRoot}/dist/**', '{projectRoot}/build/**'])",
"max_score": 20
},
{
"name": "Task dependencies pipeline",
"description": "Configures task execution order using dependsOn property in nx.json targetDefaults to define which tasks must complete before others (e.g., test depends on build)",
"max_score": 15
}
]
}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