Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将标记为私有的包发布给 Verdaccio 而无需private:true从中删除package.json?
private:true
package.json
NPM 文档说我们也可以publishConfig用来确保一个包只发布到一个特定的目录,但是没有示例如何去配置它:
publishConfig
https://docs.npmjs.com/files/package.json#private
我替换private:true为:
"publishConfig":{ "access": "restricted", "registry":"http://localhost:4873" },
请注意,包必须有范围,所以我添加了@fireflysemantics范围:
@fireflysemantics
"name": "@fireflysemantics/package-name"