Skip to content

Commit

Permalink
fix(compat): ignore ember-cli-deprecation-workflow after v2.0.0
Browse files Browse the repository at this point in the history
The `2.0.0` release of `ember-cli-deprecation-workflow` removes the package that required the compatibility adapter, so we can safely opt out of applying it if we're working with `2.0.0` or newer.
  • Loading branch information
alexlafroscia committed Jul 21, 2021
1 parent fe30c4c commit 29811be
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 29811be

Please sign in to comment.