Skip to content

Commit

Permalink
Check if @ember/string is the project being build so modules are bl…
Browse files Browse the repository at this point in the history
…acklisted
  • Loading branch information
locks committed Jan 15, 2019
1 parent cb4121b commit 0c12ba4
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 0c12ba4

Please sign in to comment.