Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Use dep.exists() to check for presence. - #215

Merged
rwjblue merged 2 commits into
ember-cli:masterfrom
rwjblue:update-detection
Oct 8, 2017
Merged

Use dep.exists() to check for presence.#215
rwjblue merged 2 commits into
ember-cli:masterfrom
rwjblue:update-detection

Conversation

@rwjblue

@rwjblue rwjblue commented Oct 8, 2017

Copy link
Copy Markdown
Member

semver's satisfies has somewhat bizarre issues around matching prerelease versions. In this case, we don't really care what version you are using at all, we just want to check if you have a given dependency installed.

This updates to using a new API in ember-cli-version-checker to simply check if a given dep exists or not.

Fixes #214

Due to sync issues from greenkeeper PR's, this updates yarn.lock to
match current package.json.
@rwjblue
rwjblue requested a review from Turbo87 October 8, 2017 12:19
Comment thread index.js Outdated
if (checker.for('ember-cli-qunit', 'npm').exists('*')) {
this._testGenerator = 'qunit';
} else if (checker.for('ember-cli-mocha', 'npm').satisfies('*')) {
} else if (checker.for('ember-cli-mocha', 'npm').exists('*')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the '*' is not needed anymore, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

DOH! indeed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated now

`semver`'s `satisfies` has somewhat bizarre issues around matching
prerelease versions. In this case, we don't _really_ care what version
you are using at all, we just want to check if you have a given
dependency installed.

This updates to using a new API in ember-cli-version-checker to simply
check if a given dep exists or not.
@rwjblue
rwjblue merged commit 298ea47 into ember-cli:master Oct 8, 2017
@rwjblue
rwjblue deleted the update-detection branch October 8, 2017 12:54
@Turbo87 Turbo87 added the bug label Nov 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants