Skip to content

Commit

Permalink
Merge pull request #260 from locks/modules-blacklist-option
Browse files Browse the repository at this point in the history
Update `@ember/string` detection to check if it is the project being run
  • Loading branch information
rwjblue authored Jan 18, 2019
2 parents cb4121b + 0c12ba4 commit 014852a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,18 @@ module.exports = {
'fmt', 'loc', 'w',
'decamelize', 'dasherize', 'camelize',
'classify', 'underscore', 'capitalize',
'setStrings', 'getStrings', 'getString'
];
}

return blacklist;
},

_emberStringDependencyPresent() {
if (this.project.name && this.project.name() === '@ember/string') {
return true;
}

let checker = new VersionChecker(this.parent).for('@ember/string', 'npm');

return checker.exists();
Expand Down

0 comments on commit 014852a

Please sign in to comment.