Skip to content

Remove ember-cli-dependency-checker - #966

Closed
NullVoxPopuli wants to merge 3 commits into
emberjs:masterfrom
NullVoxPopuli:remove-ember-cli-dependency-checker
Closed

NullVoxPopuli wants to merge 3 commits into
emberjs:masterfrom
NullVoxPopuli:remove-ember-cli-dependency-checker

Conversation

@NullVoxPopuli

@NullVoxPopuli NullVoxPopuli commented Sep 22, 2023 •

Copy link
Copy Markdown
Contributor

fewer dependencies = better?

@github-actions github-actions Bot added the S-Proposed In the Proposed Stage label Sep 22, 2023
@wagenet

wagenet commented Sep 22, 2023

Copy link
Copy Markdown
Member

I've found this package helpful in two scenarios recently:

  1. I forgot to run pnpm install
  2. I set an override in my package.json and forgot to update the actual specified dependency version to match.

@NullVoxPopuli NullVoxPopuli changed the title Remove emebr-cli-dependency-checker Remove ember-cli-dependency-checker Sep 22, 2023
@NullVoxPopuli

NullVoxPopuli commented Sep 22, 2023 •

Copy link
Copy Markdown
Contributor Author

I've added those scenarios to the RFC.

  1. is mostly covered, I think? you get a pretty early error otherwise
    2. there is another use case here where your dependencies are stale.
  2. this is uncovered

maybe instead of removing this dependency across the board, we

  • don't include it in embroider projects (webpack / vite tooling can check versions and probably provide better UI for seeing dep version mismatches -- i need to see if something for this already exists though -- because I feel like it should)
  • move ember-cli-dependency-checker into the ember-cli org, and keep it for classic apps

@SergeAstapov

Copy link
Copy Markdown
Contributor

+1 to callout from @wagenet as not once it helped to avoid mistakes by not running npm i/pnpm i

Strict only.
Example: https://github.com/embroider-build/embroider/issues/1602

Additionally, the modern package managers provide hints about incorrect setups

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should discuss / demonstrate ability of NPM and yarn as well. Not only PNPM.


## Drawbacks

If folks are still using yarn@1, they may run in to issues. Best scenario is to stop using yarn 1.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there any official support policy from the Ember project regarding package managers?

## Motivation

I noticed some erroneous warnings from ember-cli-dependency-checker while
building the app, in particular with dependencies declared with `workspace:^` versions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Existing bugs in ember-cli-dependency-checker seem to be a main driver for this RFC. Is there an overview about them? Is it only about PNPM support / workspace support? Or a more general issue?


## Drawbacks

If folks are still using yarn@1, they may run in to issues. Best scenario is to stop using yarn 1.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To keep things consistent.

Suggested change
If folks are still using yarn@1, they may run in to issues. Best scenario is to stop using yarn 1.
If folks are still using yarn v1, they may run into issues. Best scenario is to stop using yarn v1.

@NullVoxPopuli

Copy link
Copy Markdown
Contributor Author

This is not needed in the v2 app -- closing

@NullVoxPopuli
NullVoxPopuli deleted the remove-ember-cli-dependency-checker branch May 23, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-Proposed In the Proposed Stage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants