Skip to content

Commit

Permalink
fix: extra check for missing options
Browse files Browse the repository at this point in the history
  • Loading branch information
LuXDAmore committed Jan 29, 2020
1 parent 5bacc80 commit c62221b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c62221b

Please sign in to comment.