Skip to content

Commit

Permalink
Merge pull request #248 from marvinhagemeister/fix_linting_error
Browse files Browse the repository at this point in the history
Fix linting error
  • Loading branch information
ForsakenHarmony committed Nov 16, 2018
2 parents c764568 + e42bbc9 commit db479c3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/index.js
Expand Up @@ -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'
}`,
);

Expand All @@ -108,9 +108,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));
Expand Down

0 comments on commit db479c3

Please sign in to comment.