【发布时间】:2019-05-17 22:35:26
【问题描述】:
我想自己编写 ngpackagr 原理图。 在我的自定义规则中,我执行以下操作:
export function testScehma(_options: any): Rule {
return chain([
externalSchematic('@angular-devkit/build-ng-packagr', 'build', _options),
(tree: Tree, _context: SchematicContext) => {
tree.create('testFile.txt', 'This is a Test!!!');
return tree;
}
]);
}
然后我尝试运行:ng my-test-lib build。
我收到以下错误:
Error: Package "@angular-devkit/build-ng-packagr" was found but does not support schematics.
我在哪里可以找到ngpackagr 原理图以便能够对其进行扩展?
【问题讨论】:
标签: angular ng-packagr angular-schematics