From 7db40dfb53cd9008d2246bbcd2c5b6ef6158bd00 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 11 May 2016 18:13:30 +0200 Subject: [PATCH] fix(commands): fix outdated string utils import. * 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' --- addon/ng2/commands/easter-egg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/ng2/commands/easter-egg.ts b/addon/ng2/commands/easter-egg.ts index 8f44d7cc300e..48079e668c34 100644 --- a/addon/ng2/commands/easter-egg.ts +++ b/addon/ng2/commands/easter-egg.ts @@ -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'; @@ -14,7 +15,6 @@ module.exports = function(name) { works: 'insideProject', run: function (commandOptions, rawArgs): Promise { - var stringUtils = require('ember-cli/lib/utilities/string'); this[stringUtils.camelize(this.name)](commandOptions, rawArgs); return Promise.resolve();