【问题标题】:Publishing custom angular7 library to nexus将自定义 angular7 库发布到 nexus
【发布时间】:2019-10-24 02:32:47
【问题描述】:

我正在尝试将自定义 angular7 库发布到 nexus 存储库,但是当我运行命令 npm publish 时,它正在推送完整的项目 dist 文件夹,而应该只推送内部生成的 .tgz 文件dist 到 nexus。

我在项目的主 package.json 文件中做了以下配置:

"publishConfig": {
        "registry": "http://localhost:8081/repository/npm-private/"
 }

【问题讨论】:

    标签: npm angular7 nexus angular-library npm-publish


    【解决方案1】:

    库的 package.json 中的 publishonfig 是否更改并使用 ng build 构建库,并且一旦构建,npm 从 dist/library 文件夹发布。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-03
      • 1970-01-01
      • 2019-11-22
      • 2016-01-13
      • 1970-01-01
      • 2017-09-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多