Skip to content

Drop dependencies the addon doesn't use - #17

Merged
BlueCutOfficial merged 4 commits into
mainmatter:mainfrom
aklkv:fix/unused-deps
Oct 21, 2026
Merged

BlueCutOfficial merged 4 commits into
mainmatter:mainfrom
aklkv:fix/unused-deps

Conversation

@aklkv

@aklkv aklkv commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

First part of splitting up #16.

Only @babel/helper-plugin-utils, @formatjs/ts-transformer and ember-cli-babel-plugin-helpers are required anywhere. ember-cli-htmlbars is the one that hurts: as a dependency it gets instantiated as a nested addon, and its included() reads ember.absolutePaths.templateCompiler, which ember-source 7 no longer has, so the app build fails.

Also removes the dummy app scaffolding that was never used, accepts ember-intl 8 and 9 as peers, and declares @babel/plugin-transform-typescript, which the fixture tests load but only found through pnpm's hidden hoisting.

aklkv added 4 commits October 20, 2026 02:54
Only @babel/helper-plugin-utils, @formatjs/ts-transformer and
ember-cli-babel-plugin-helpers are required anywhere in the source.

ember-cli-htmlbars is the one that hurts: as a dependency it gets
instantiated as a nested addon, and its included() reads
ember.absolutePaths.templateCompiler, which ember-source 7 no longer
exposes, so the app build fails before any template is compiled.
The addon blueprint left devDependencies for a dummy app under
tests/dummy, which was never added, plus empty addon/ and app/ trees, a
config/environment.js returning {} and the .ember-cli generator config.
None of it is used by the node tests or the lint setup.
The transforms only rewrite to ember-intl/helpers/t, and to the intl
service's t(). Both are still there in 8 and 9, so apps on either got a
peer warning for nothing.
The fixture tests load it by name, but it was never a devDependency.
Babel found it through pnpm's hidden hoisting, from ember-cli-babel deep
in ember-intl's auto-installed peer tree, so any change there could
break the tests.
@BlueCutOfficial
BlueCutOfficial merged commit 6342cab into mainmatter:main Oct 21, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 21, 2026
@aklkv
aklkv deleted the fix/unused-deps branch October 21, 2026 07:27
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