【发布时间】:2020-08-18 02:20:16
【问题描述】:
正在处理此模块的拉取请求:https://github.com/echoulen/react-pull-to-refresh ...
我相信已发布的模块会在 package.json prepublish npm 脚本中构建 /dist。我在本地使用该模块,并通过yarn add https://github.com/jbeuckm/react-pull-to-refresh 安装了我的 github 分支。
问题是当我尝试在 bitbucket 管道中构建我的(消费)项目时。当react-js-pull-to-refresh 模块无法解析时,管道会失败。我怀疑这是因为/dist 文件夹是在prepublish 中构建的,而我的版本没有发布。
在构建消费项目时,如何告诉 npm 在我未发布的 repo 模块中构建 /dist?
【问题讨论】:
标签: node.js git typescript npm