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%
{
"context": "This criteria evaluates the engineer's ability to use Lerna's watch command for file monitoring and automatic build triggering in a monorepo. The focus is on proper configuration and utilization of Lerna's watch functionality including file pattern matching and command execution.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Watch command usage",
"description": "Uses `lerna watch` command (or equivalent like `lerna run watch` with proper configuration) to monitor file changes in packages",
"max_score": 30
},
{
"name": "File pattern targeting",
"description": "Correctly configures file patterns (e.g., 'src/**/*.js' or similar glob patterns) to watch specific files within packages, avoiding unnecessary monitoring of build outputs or node_modules",
"max_score": 20
},
{
"name": "Build script execution",
"description": "Configures the watch command to execute the build script (e.g., using `lerna watch -- lerna run build --scope=$LERNA_PACKAGE_NAME` or similar) when changes are detected",
"max_score": 25
},
{
"name": "Package scope handling",
"description": "Properly uses Lerna's package scoping capabilities (like `--scope` flag with $LERNA_PACKAGE_NAME environment variable) to ensure only the changed package is rebuilt, not all packages",
"max_score": 15
},
{
"name": "Root configuration",
"description": "Sets up the watch command in the root package.json scripts section (e.g., '\"watch\": \"lerna watch ...\"') making it easily accessible via npm/yarn run",
"max_score": 10
}
]
}