mirror of
https://github.com/developit/microbundle.git
synced 2026-01-25 14:06:50 +00:00
Update prettier to fix linting issue
This commit is contained in:
parent
2beb4cad85
commit
8d0e472366
@ -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",
|
||||
|
||||
11
src/index.js
11
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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user