Yarn monorepo:在某些包上运行 Yarn 脚本,但不是全部

use*_*410 5 yarnpkg yarn-workspaces

我正在尝试在我的一些工作区包中运行测试,但不是全部

从 monorepo 根我想运行类似的东西

yarn workspaces run test --exclude package3
Run Code Online (Sandbox Code Playgroud)

或者

yarn workspace package1 package2 run test
Run Code Online (Sandbox Code Playgroud)

但这些命令都无效。

谁能建议一个解决方法?