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

downgrade ember-cli dependency to support a wider range of ember-source #2321

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mansona
Copy link
Member

@mansona mansona commented Feb 27, 2025

Most of the time this won't be a problem for people since ember-cli can usually be upgraded independently of your app, but this breaks for anyone trying to use the codemod with [email protected] because of the bowerDependencies deprecation and removal in ember-cli@5

The issue I have here is that we kinda want a peer, but we don't actually install the codemod 🙈 does npx consider the cwd when thinking about peers? What is the best way forward here? should I be doing an explicit resolve from cwd and dropping the dependency altogether? Thoughts?

This PR downgrades the ember-cli dependency to 4.12 which gives us a balance of supporting 3.28 and also being the first version that works with an async function returned from ember-cli-build 😂 we're very lucky this version is so perfect

@mansona mansona requested a review from ef4 February 27, 2025 14:29
@ef4
Copy link
Contributor

ef4 commented Feb 27, 2025

Yeah, I doubt you can rely on a peer when you're executing via npx or dlx.

Can we just downgrade our dependency to 4.x?

@mansona
Copy link
Member Author

mansona commented Feb 27, 2025

I guess that's probably ok 🤔 I don't think there is anything since 4.x that people would rely on for the prebuild. Let me try that 👍

@mansona mansona changed the title move ember-cli to peerDependency downgrade ember-cli dependency to support a wider range Feb 27, 2025
@mansona
Copy link
Member Author

mansona commented Feb 27, 2025

@ef4 I've tested this locally with my 3.28 app and it's working amazingly 🎉

@mansona mansona marked this pull request as ready for review February 27, 2025 16:44
@mansona mansona changed the title downgrade ember-cli dependency to support a wider range downgrade ember-cli dependency to support a wider range of ember-source Feb 27, 2025
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