diff --git a/docs/adr/template.md b/docs/adr/template.md new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/create.ts b/src/lib/create.ts index d4e883f..56e9e58 100644 --- a/src/lib/create.ts +++ b/src/lib/create.ts @@ -8,7 +8,7 @@ import { generate } from './generate' function getTemplatePath (language: string) { const fileExt = Config.getDocExtension() - const customTemplate = path.join(Config.getSavePath(), 'template.', fileExt) + const customTemplate = path.join(Config.getSavePath(), 'template.' + fileExt) if (fs.existsSync(customTemplate)) { return customTemplate } else {