Support multiple paths and/or glob patterns in the CLI
See original GitHub issueIs your feature request related to a problem? Please describe.
Sort of, if you are trying to use the CLI in a lerna repo it doesn’t support glob patterns like
lockfile-lint -p packages/*/package-lock.json -t npm -a npm -o https: -c -i
Describe the solution you’d like
Either support multiple paths or glob patterns.
Describe alternatives you’ve considered
Writing a script to manually loop over all the packages.
Would you entertain a PR that would accomplish this?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
CLI should take multiple paths and not a glob pattern #44
When invoked via the CLI, take paths like a normal unix app would, rather than ask users to provide globs in quotes. This...
Read more >glob — Unix style pathname pattern expansion ... - Python Docs
The glob module finds all the pathnames matching a specified pattern ... This function can support paths relative to directory descriptors with the...
Read more >Tips for writing glob patterns in DeepSource configuration
The glob pattern to match all files under the /src/tests/ directory should be written as */tests** — where */ denotes matching a string...
Read more >The best way to expand glob pattern? - Unix Stack Exchange
Just let it expand inside an array declaration's right side: list=(../smth*/) # grab the list echo "${#list[@]}" # print array length echo "${list[@]}" ......
Read more >node.js - Nodejs glob multiple patterns - Stack Overflow
When using node-glob you can provide multiple patterns like this: ... This will match all file within the path folder that has extension ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tunnckoCore no support for pnpm but it shouldn’t be hard to add if you wanted to give it a stab
@JamesSingleton if you wanted to provide a glob pattern I’d happily merge it.
@tunnckoCore I believe
lerna
behaves differently betweenyarn
andnpm
:https://stackoverflow.com/questions/52181762/are-there-any-advantages-to-using-lerna-with-yarn-workspaces/52279466#52279466
https://github.com/yarnpkg/yarn/issues/5428
As some of these links suggest, having one
package-lock.json
oryarn.lock
in a monorepo is not necessarily production ready per package- if each was containerized without a lock file, differing versions resolved in yournode_modules
could break your package.