Angular Build Architect builder for ng-packagr library packaging (deprecated)
89
{
"context": "This criteria evaluates how well the engineer uses JavaScript/TypeScript dynamic module loading capabilities, specifically the dynamic import() syntax and Node.js error handling patterns for MODULE_NOT_FOUND errors. The focus is on proper usage of async/await patterns with dynamic imports and discriminating between different error types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Dynamic import usage",
"description": "Uses the dynamic import() syntax to load packages at runtime. The implementation should use import(packageName) within an async context rather than static imports or require().",
"max_score": 30
},
{
"name": "Error code checking",
"description": "Checks the error.code property to identify MODULE_NOT_FOUND errors specifically. The implementation should access error.code and compare it to 'MODULE_NOT_FOUND' to distinguish missing packages from other errors.",
"max_score": 25
},
{
"name": "Async/await pattern",
"description": "Uses async/await syntax correctly with the dynamic import(). The loadPackage method should be declared as async and properly await the import() call.",
"max_score": 15
},
{
"name": "Error discrimination",
"description": "Distinguishes between MODULE_NOT_FOUND errors and other import errors by catching errors, checking the error code, and handling them differently (returning error object for MODULE_NOT_FOUND, re-throwing others).",
"max_score": 20
},
{
"name": "Result structure",
"description": "Returns properly structured result objects with success: true/false and appropriate data (module property for success, error property for failure) as specified in the requirements.",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-angular-devkit--build-ng-packagrdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10