From 0d7798705b57a044133db390d9b1d565ec648410 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Mon, 26 Nov 2018 12:13:59 -0500 Subject: [PATCH] prettier whitespace fixes --- src/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 7778088..ef1d1cb 100644 --- a/src/index.js +++ b/src/index.js @@ -97,8 +97,8 @@ export default async function microbundle(options) { (await isFile(resolve(cwd, filename + '.ts'))) ? '.ts' : (await isFile(resolve(cwd, filename + '.tsx'))) - ? '.tsx' - : '.js' + ? '.tsx' + : '.js' }`, ); @@ -108,10 +108,9 @@ 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));