[英]running test command using lerna managed monorepo using --scope fails
I'm using lerna
to manage my monorepo, for some reason, when I try to run the following command from the root folder ( using the docs here ): lerna run --scope my-app test
I get the following error of lerna didn't find the module to run npm test
on:我正在使用
lerna
来管理我的 monorepo,出于某种原因,当我尝试从根文件夹运行以下命令时( 使用此处的文档): lerna run --scope my-app test
我收到以下 lerna 错误找不到在其上运行npm test
的模块:
lerna notice cli v3.20.2
lerna info versioning independent
lerna notice filter including "my-app"
lerna info filter [ 'my-app' ]
lerna ERR! EFILTER No packages remain after filtering [ 'my-app' ]
My lerna.json
file has this definitions:我的
lerna.json
文件具有以下定义:
"packages": [
"app1",
"some-package-with-my-app/*",
"app2",
"app3"
],
I also tried to run lerna run --scope some-package-with-my-app/my-app test
but got the same error (with the corresponding filter name, of course)我也尝试运行
lerna run --scope some-package-with-my-app/my-app test
但得到了同样的错误(当然还有相应的过滤器名称)
What am I doing wrong?我究竟做错了什么? Am I missing something in the docs ?
我在 文档中遗漏了什么吗?
The package named my-app
was scoped with my organisation name.名为
my-app
的包以my-app
组织名称为范围。 ie the name as appeared in my package.json
file was @org/my-app
so once running lerna run --scope @org/my-app test
it worked perfectly即出现在我的
package.json
文件中的名称是@org/my-app
所以一旦运行lerna run --scope @org/my-app test
它就完美地工作了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.