Skip to content

Commit 0db77e1

Browse files
committed
Fixed default callback for sails-generate
1 parent c75280d commit 0db77e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/sails-generate.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var package = require('../package.json')
2121
* Internally, uses ejs for rendering the various module templates.
2222
*/
2323

24-
module.exports = function () {
24+
module.exports = function ( ) {
2525

2626
// Get CLI configuration
2727
var config = rc('sails');
@@ -32,7 +32,8 @@ module.exports = function () {
3232
sailsPackageJSON: package,
3333
options: {
3434
maxDepth: 5
35-
}
35+
},
36+
modules: {}
3637
};
3738

3839
// Mix-in rc config
@@ -47,6 +48,6 @@ module.exports = function () {
4748
scope.generatorType = cliArguments.shift();
4849
scope.args = cliArguments;
4950

50-
return sailsgen( scope, reportback.extend() );
51+
return sailsgen( scope );
5152
};
5253

0 commit comments

Comments
 (0)