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.

Allow to pass glob or regex to linked config

See original GitHub issue

Affected Packages

Problem

When using the linked config option, it can get quite verbose to write and keep track of all the packages in the repo.

This becomes obvious when you want to “simulated” the “locked” mode of Lerna, where all packages follow more or less a common version (as suggested here https://github.com/atlassian/changesets/issues/356#issuecomment-625203441).

Proposed solution

One thing that would help is to allow to pass a regex or a glob string instead of listing all packages explicitly.

For example:

{
  "linked": [
    ["@changesets/*"]
  ]
}

Or even introduce a new option that automatically link all packages. For example:

{
  "linkAllPackages": true
}

It would be enough to have a glob/regex, which is a bit more flexible.

What do you think?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
emmenkocommented, Sep 17, 2020

PR is open, let me know what you think

1reaction
emmenkocommented, Sep 17, 2020

FYI: I started working on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Regular expression usage in glob.glob? - Stack Overflow
This code works to list files in the current folder which have 'abc' , '123' or 'a1b' in their names. How would I...
Read more >
[proposal] use globs instead of regex in config #926 - GitHub
i was thinking maybe using something like https://github.com/fitzgen/glob-to-regexp. regex config can also be preserved, e.g.:.
Read more >
Using regular expressions with cp - Unix Stack Exchange
The UNIX shell uses glob patterns, not regular expressions. So, if you want to match file names starting with axis2 and ending with...
Read more >
Globbing and Regex: So Similar, So Different - Linux Journal
You can use the fgrep command (or grep -F , which is the same thing) in order to skip any regex substitutions. Using...
Read more >
glob - Greg's Wiki
Globs. "Glob" is the common name for a set of Bash features that match or expand specific types of patterns. Some synonyms for...
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