【发布时间】:2022-06-29 03:41:06
【问题描述】:
ng lint 在 Gitlab CI 上失败,并显示错误消息 An unhandled exception occurred: Failed to load /builds/trade-up/trade-up/common/projects/trade-up-common/tslint.json: Could not find custom rule directory: codelyzer。
ng lint 在我的本地机器上运行没有问题,但在 gitlab CI 上失败。
在trade-up-common 包中,我已将tslint.json 添加到.npmignore 文件中。
Codelyzer 包含在主要 Angular 应用程序和公共包的依赖项中。
【问题讨论】:
标签: angular typescript gitlab lint