admin管理员组文章数量:1344319
Is it possible to publish packages marked as private to Verdaccio without removing private:true
from package.json
?
The NPM documentation says that we can also use publishConfig
to ensure that a package is only published to a specific directory, but there are not examples how to go about configuring it:
.json#private
Is it possible to publish packages marked as private to Verdaccio without removing private:true
from package.json
?
The NPM documentation says that we can also use publishConfig
to ensure that a package is only published to a specific directory, but there are not examples how to go about configuring it:
https://docs.npmjs./files/package.json#private
Share Improve this question edited Nov 8, 2020 at 10:13 Ole asked Dec 27, 2019 at 4:45 OleOle 47.4k70 gold badges237 silver badges445 bronze badges1 Answer
Reset to default 10I replaced private:true
with:
"publishConfig":{
"access": "restricted",
"registry":"http://localhost:4873"
},
Note that the package has to be scoped, so I added the @fireflysemantics
scope:
"name": "@fireflysemantics/package-name"
本文标签: javascriptPublishing packages marked as private to verdaccioStack Overflow
版权声明:本文标题:javascript - Publishing packages marked as private to verdaccio - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743748764a2532253.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论