question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multiple paths and/or glob patterns in the CLI

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
lirantalcommented, Jan 23, 2020

@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.

2reactions
Francois-Esquirecommented, Jan 22, 2020

@tunnckoCore I believe lerna behaves differently between yarn and npm:

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 or yarn.lock in a monorepo is not necessarily production ready per package- if each was containerized without a lock file, differing versions resolved in your node_modules could break your package.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found