admin管理员组文章数量:1323015
I'm using lerna
to manage my monorepo, for some reason, when I try to run the following mand 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 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:
"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)
What am I doing wrong? Am I missing something in the docs?
I'm using lerna
to manage my monorepo, for some reason, when I try to run the following mand 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 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:
"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)
What am I doing wrong? Am I missing something in the docs?
Share Improve this question asked Jan 22, 2020 at 16:02 Ziv LevyZiv Levy 2,0443 gold badges22 silver badges38 bronze badges1 Answer
Reset to default 9The package named my-app
was scoped with my organisation name.
i.e. 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
本文标签: javascriptrunning test command using lerna managed monorepo using scope failsStack Overflow
版权声明:本文标题:javascript - running test command using lerna managed monorepo using --scope fails - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742113724a2421372.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论