diff --git a/src/generators/factory/index.js b/src/generators/factory/index.js index c303eb9b8..8daf6d5d8 100644 --- a/src/generators/factory/index.js +++ b/src/generators/factory/index.js @@ -1,9 +1,9 @@ 'use strict'; var yeoman = require('yeoman-generator'); -var Generator = yeoman.generators.Base.extend({ +var Generator = yeoman.Base.extend({ compose: function() { - this.composeWith('ng-component:factory', {arguments: this.arguments}, { local: require.resolve('generator-ng-component/factory') }); + this.composeWith('ng-component:factory', {arguments: this.arguments}, { local: require.resolve('generator-ng-component/generators/factory') }); } });