PublishConfig不受纱线1.22的尊重
我正在使用YARN v1.22
和纱线工作空间来构建我的应用程序作为monorepo。这是我们组件库软件包的package.json
。我想使用PublishConfig
在我执行main
字段时,当我做npm Prubly
或YARN PUSTRUBL
时。但是,当我尝试运行这些命令时,main
字段将不更改。谁能分享一些建议?谢谢。
{
"name": "components",
"private": false,
"version": "0.1.2",
"main": "src/index.ts",
"files": [
"dist"
],
"publishConfig": {
"main": "dist/index.js"
}
}
I'm using yarn v1.22
and yarn workspace for building my application as a monorepo. Here is the package.json
for our component library package. I want to use publishConfig
to override the main
field when I do npm publish
or yarn publish
. But when I tried to run those commands, the main
field is no changed. Can anyone share some suggestions? Thanks.
{
"name": "components",
"private": false,
"version": "0.1.2",
"main": "src/index.ts",
"files": [
"dist"
],
"publishConfig": {
"main": "dist/index.js"
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论