From a89d6d299729f1ef9ffafdbbc80177a894969a36 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 27 Nov 2018 08:02:58 +0100 Subject: [PATCH] Fix prettier linting error --- src/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index bc371f4..bac2993 100644 --- a/src/index.js +++ b/src/index.js @@ -106,8 +106,8 @@ export default async function microbundle(options) { (await isFile(resolve(cwd, filename + '.ts'))) ? '.ts' : (await isFile(resolve(cwd, filename + '.tsx'))) - ? '.tsx' - : '.js' + ? '.tsx' + : '.js' }`, ); @@ -117,9 +117,10 @@ export default async function microbundle(options) { options.entries && options.entries.length ? options.entries : (options.pkg.source && resolve(cwd, options.pkg.source)) || - ((await isDir(resolve(cwd, 'src'))) && (await jsOrTs('src/index'))) || - (await jsOrTs('index')) || - options.pkg.module, + ((await isDir(resolve(cwd, 'src'))) && + (await jsOrTs('src/index'))) || + (await jsOrTs('index')) || + options.pkg.module, ) .map(file => glob(file)) .forEach(file => options.input.push(...file));