Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic config for linked and ignore options #627

Open
NMinhNguyen opened this issue Aug 27, 2021 · 2 comments
Open

Dynamic config for linked and ignore options #627

NMinhNguyen opened this issue Aug 27, 2021 · 2 comments

Comments

@NMinhNguyen
Copy link
Contributor

NMinhNguyen commented Aug 27, 2021

Affected Packages

I think @changesets/config but not 100% sure as I'm not familiar with the codebase.

Problem

We have a monorepo with packages that don't really follow a particular naming convention. Instead, they're placed in two distinct folders, let's say apps and libs. I'd like to put all of libs into linked (so that they're versioned like Babel and React packages) and all of apps into ignore as I don't want the apps to be versioned via Changesets (not right now anyway - possibly in the future?). Now I know that I can use globs but that's just for the package names, and there's no naming convention here. What I'd like to do instead is to use globby or something and pass this computed list of packages to Changesets. I can see a reference to dynamic .js configs in #533 - that would totally solve my use case. For now, I'm considering having a workaround involving a script that generates the JSON config and we run it as a commit hook to ensure it's always up-to-date.

Proposed solution

@wycats
Copy link

wycats commented Jun 21, 2022

I would find this very useful as well.

@wycats
Copy link

wycats commented Jun 21, 2022

It looks like #458 added support for globs in ignore. Looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants