Skip to content

Commit

Permalink
fix(commands): fix outdated string utils import.
Browse files Browse the repository at this point in the history
* Currently the command `ng make-this-awesome` is not working, because the stringUtils, for the camelize function are not loaded correctly.

> Cannot find module 'angular-cli/lib/utilities/string'
> Error: Cannot find module 'angular-cli/lib/utilities/string'
  • Loading branch information
devversion committed May 11, 2016
1 parent dc86021 commit 7db40df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/ng2/commands/easter-egg.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as Command from 'ember-cli/lib/models/command';
import * as Promise from 'ember-cli/lib/ext/promise';
import * as stringUtils from 'ember-cli-string-utils';
import * as chalk from 'chalk';


Expand All @@ -14,7 +15,6 @@ module.exports = function(name) {
works: 'insideProject',

run: function (commandOptions, rawArgs): Promise<void> {
var stringUtils = require('ember-cli/lib/utilities/string');
this[stringUtils.camelize(this.name)](commandOptions, rawArgs);

return Promise.resolve();
Expand Down

0 comments on commit 7db40df

Please sign in to comment.