Skip to content

Conversation

@paul-vd
Copy link
Contributor

@paul-vd paul-vd commented Mar 28, 2023

What?

This allows to use the --sequence flag when working in a local monorepo context.

@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2023

🦋 Changeset detected

Latest commit: 2f2e116

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@codeshift/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@paul-vd paul-vd marked this pull request as ready for review March 28, 2023 11:39
Copy link
Contributor

@danieldelcore danieldelcore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great thanks a lot for the contribution. Just tested both cases locally and works nicely!

@@ -0,0 +1,5 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a great changeset id 😂

🕷️ 💻 👨‍💻

transforms.push(config.transforms[answers.codemod]);
Object.entries(config.transforms)
.filter(([key]) => semver.satisfies(key, `>=${answers.codemod}`))
.forEach(([, path]) => transforms.push(path));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @paul-vd I also added support for non-monorepo local usage. Seems to work well in both cases!

@danieldelcore danieldelcore merged commit cee16db into hypermod-io:main Apr 14, 2023
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

Successfully merging this pull request may close these issues.

2 participants