Skip to content

Commit f913a20

Browse files
committed
fix: format code w/ prettier
1 parent 84fae49 commit f913a20

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/build.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ const BABEL_ROOT_CONFIG_FILENAMES = [
1414
'babel.config.js',
1515
'babel.config.cjs',
1616
'babel.config.mjs',
17-
'babel.config.json'
17+
'babel.config.json',
1818
];
1919

2020
const BABEL_RELATIVE_CONFIG_FILENAMES = [
2121
'.babelrc',
2222
'.babelrc.js',
2323
'.babelrc.cjs',
2424
'.babelrc.mjs',
25-
'.babelrc.json'
25+
'.babelrc.json',
2626
];
2727

2828
const testFilePattern = '\\.(test|spec)\\.?';
@@ -37,9 +37,12 @@ function getBabelTarget(envConfig) {
3737
}
3838

3939
function existsBabelConfig(functionsDir) {
40-
const babelConfigFile = findUp.sync([...BABEL_ROOT_CONFIG_FILENAMES, ...BABEL_RELATIVE_CONFIG_FILENAMES], {
41-
cwd: path.join(process.cwd(), functionsDir)
42-
});
40+
const babelConfigFile = findUp.sync(
41+
[...BABEL_ROOT_CONFIG_FILENAMES, ...BABEL_RELATIVE_CONFIG_FILENAMES],
42+
{
43+
cwd: path.join(process.cwd(), functionsDir),
44+
},
45+
);
4346
if (babelConfigFile) {
4447
// Ensure babel config files outside of working dir are not accounted for
4548
return babelConfigFile.includes(process.cwd());

0 commit comments

Comments
 (0)