Skip to content

Commit 7db40df

Browse files
committed
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'
1 parent dc86021 commit 7db40df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/ng2/commands/easter-egg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as Command from 'ember-cli/lib/models/command';
22
import * as Promise from 'ember-cli/lib/ext/promise';
3+
import * as stringUtils from 'ember-cli-string-utils';
34
import * as chalk from 'chalk';
45

56

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

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

2020
return Promise.resolve();

0 commit comments

Comments
 (0)