Skip to content

Commit

Permalink
Update prettier to fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Dec 1, 2018
1 parent 2beb4ca commit 8d0e472
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -90,7 +90,7 @@
"husky": "^1.1.2",
"jest": "^23.6.0",
"lint-staged": "^8.0.0",
"prettier": "^1.13.0",
"prettier": "^1.15.3",
"regenerator-runtime": "^0.12.1",
"rimraf": "^2.6.2",
"shell-quote": "^1.6.1",
Expand Down
11 changes: 6 additions & 5 deletions src/index.js
Expand Up @@ -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'
}`,
);

Expand All @@ -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));
Expand Down

0 comments on commit 8d0e472

Please sign in to comment.