From e28e7cc767ae39c33aaf0279299a6ee1f31b60ce Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 28 Apr 2019 23:48:34 +0100 Subject: [PATCH] fix: file name License: MIT Signed-off-by: Henrique Dias --- bin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/index.js b/bin/index.js index 0fc352d..2f6a5ca 100644 --- a/bin/index.js +++ b/bin/index.js @@ -27,7 +27,7 @@ async function write ({ data, img }, dir) { try { await fs.outputJSON(join(dir, 'info.json'), data, { spaces: '\t' }) await fs.outputFile(join(dir, basename(data.img)), img) - await fs.outputFile(join(dir, `image.${extname(data.img)}`), img) + await fs.outputFile(join(dir, `image${extname(data.img)}`), img) await fs.outputFile(join(dir, 'index.html'), comicPage(data)) } catch (err) { await fs.remove(dir)