Allow to pass glob or regex to linked config
See original GitHub issueAffected 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:
- Created 3 years ago
- Reactions:4
- Comments:8 (5 by maintainers)
Top 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 >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
PR is open, let me know what you think
FYI: I started working on this.