diff --git a/lib/module.js b/lib/module.js index ec09d44..9454c6a 100644 --- a/lib/module.js +++ b/lib/module.js @@ -190,7 +190,7 @@ export default async function( // File generator const completeFilePath = resolve( __dirname, - `${ options.file.startFromStaticDir ? this.options.dir.static : this.options.srcDir }/${ options.file.path }/${ options.dir || '' }/${ options.file.name }.${ options.file.ext }`, + `${ options.file.startFromStaticDir ? this.options.dir.static : this.options.srcDir }/${ options.file.path || '' }/${ options.dir || '' }/${ options.file.name || moduleName }.${ options.file.ext || 'json' }`, ); try {