Update prettier to fix linting issue

This commit is contained in:
Marvin Hagemeister 2018-12-01 09:27:18 +01:00
parent 2beb4cad85
commit 8d0e472366
2 changed files with 7 additions and 6 deletions

View File

@ -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",

View File

@ -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));