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

Only patch ember-cli-deprecation-workflow releases before 2.0.0 #900

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ import { UnwatchedDir } from 'broccoli-source';
import resolve from 'resolve';
import { Memoize } from 'typescript-memoize';
import buildFunnel from 'broccoli-funnel';
import semver from 'semver';

export default class extends V1Addon {
// v2.0.0 removes the usage of `ember-debug-handlers-polyfill`, so we only need to apply the adapter if we're working
// with a version that is older than that
static shouldApplyAdapter(addonInstance: any) {
return semver.lt(addonInstance.pkg.version, '2.0.0');
}

@Memoize()
get v2Trees() {
// ember-cli-deprecation-workflow does `app.import` of a file that isn't in
Expand Down