File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33[ ![ npm version] ( https://badge.fury.io/js/ember-cli-version-checker.svg )] ( https://badge.fury.io/js/ember-cli-version-checker )
44![ ] ( https://github.com/stefanpenner/do-you-even-test/workflows/ci/badge.svg )
55
6- Makes it easier to determine if a compatible version of a given NPM or Bower package is present.
6+ Makes it easier to determine if a compatible version of a given NPM package is present.
77
88## Usage
99
@@ -19,11 +19,11 @@ module.exports = {
1919 name: ' awesome-addon' ,
2020 treeForAddonTemplates (tree ) {
2121 let checker = new VersionChecker (this .project );
22- let dep = checker .for (' ember' , ' bower ' );
22+ let dep = checker .for (' ember-source ' );
2323
2424 let baseTemplatesPath = path .join (this .root , ' addon/templates' );
2525
26- if (dep .satisfies (' >= 1.13 .0' )) {
26+ if (dep .satisfies (' >= 3.4 .0' )) {
2727 return this .treeGenerator (path .join (baseTemplatesPath, ' current' ));
2828 } else {
2929 return this .treeGenerator (path .join (baseTemplatesPath, ' legacy' ));
@@ -174,7 +174,7 @@ version range or the app uses [yarn
174174 resolutions] ( https://yarnpkg.com/lang/en/docs/selective-version-resolutions/ ) .
175175
176176This is useful if the app wants to make sure there's no unexpected assets from
177- the addon on being included but still alow the addon being included in the
177+ the addon being included but still allow the addon to be included in the
178178hierarchy's build process.
179179
180180``` js
You can’t perform that action at this time.
0 commit comments