我有这样设置的工作区
"private": true,
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/firebase-admin",
"**/firebase-admin/**",
"**/firebase-functions",
"**/firebase-functions/**"
]
},
在我的包目录中,我有一个文件夹common
,其中包括自己的文件夹package.json
等。
当我执行yarn workspaces run build
它时,它会触发所有工作区的构建脚本。但是,如果我尝试使用yarn workspace
命令来定位一个特定的工作区,就像yarn workspace common build
我不断收到错误一样:
错误未知工作区“常见”。
这是我的输出yarn workspaces info
:
yarn workspaces v1.17.0
{
"@gemini/cli": {
"location": "packages/cli",
"workspaceDependencies": [],
"mismatchedWorkspaceDependencies": []
},
"@gemini/cloud-functions": {
"location": "packages/cloud-functions",
"workspaceDependencies": [
"@gemini/common"
],
"mismatchedWorkspaceDependencies": []
},
"@gemini/common": {
"location": "packages/common",
"workspaceDependencies": [],
"mismatchedWorkspaceDependencies": []
},
"@gemini/tools": {
"location": "packages/tools",
"workspaceDependencies": [],
"mismatchedWorkspaceDependencies": []
}
}
我尝试将名称更改为 package/common 或 @gemini/common 但没有运气。
我在这里想念什么?