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

Make ember-source compat adapter tolerant of upcoming ember-source changes #1907

Merged
merged 1 commit into from
May 7, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented May 7, 2024

I'm working to land a Build Reform branch in ember-source that, among other things, uses only rollup for Ember's prepublication build, ensuring that it's all ES-module clean.

The inter-package imports within ember-source/dist/packages switch from being package names (which require non-standard resolving to work) to relative imports (which do not). As a consequence of that it's simpler to ship all of dist/packages and dist/dependencies together as dist/packages. So our compat adapter needs to tolerate dist/dependencies not existing.

The special handling we had for enumerating the contents of dist/dependencies and removing them from package.json dependencies was only needed to deal with the magical inter-package resolving, so it's correct that it becomes a no-op for these new ember versions.

@ef4 ef4 added the enhancement New feature or request label May 7, 2024
…anges

I'm working to land a [Build Reform](emberjs/ember.js#20675) branch in ember-source that, among other things, uses only rollup for Ember's prepublication build, ensuring that it's all ES-module clean.

The inter-package imports within `ember-source/dist/packages` switch from being package names (which require non-standard resolving to work) to relative imports (which do not). As a consequence of that it's simpler to ship all of `dist/packages` and `dist/dependencies` together as `dist/packages`. So our compat adapter needs to tolerate `dist/dependencies` not existing.

The special handling we had for enumerating the contents of `dist/dependencies` and removing them from package.json dependencies was only needed to deal with the magical inter-package resolving, so it's correct that it becomes a no-op for these new ember versions.
@ef4 ef4 force-pushed the update-ember-source-adapter branch from 043a1bc to cc9f590 Compare May 7, 2024 21:17
@ef4 ef4 merged commit dfa3d6e into stable May 7, 2024
201 checks passed
@ef4 ef4 deleted the update-ember-source-adapter branch May 7, 2024 21:42
@github-actions github-actions bot mentioned this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant