我在 10 中创建了 angular 应用程序,这是我有一个库和一个应用程序的工作区
我知道我们可以使用命令在应用程序中安装依赖项 -
npm install @ngrx/store
现在假设如果我必须在库中安装依赖项,我应该怎么做。?例如,我需要做什么来更新 package.json,如下所示。
{
name: '@customerReport',
version: '0.0.1',
peerDeependencies : {
@angular/common : '^10.1.6',
@angular/core : '^10.1.6',
@ngrx/store' : '^10.1.2'
}
}
大多数示例与应用程序相关,但与库无关。