Skip to content

Commit

Permalink
Revert formatter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Oct 15, 2019
1 parent cffc994 commit ef91a9b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let appPackageJson: {

try {
appPackageJson = fs.readJSONSync(resolveApp('package.json'));
} catch (e) { }
} catch (e) {}

// check for custom tsdx.config.js
let tsdxConfig = {
Expand Down Expand Up @@ -81,8 +81,8 @@ async function jsOrTs(filename: string) {
const extension = (await isFile(resolveApp(filename + '.ts')))
? '.ts'
: (await isFile(resolveApp(filename + '.tsx')))
? '.tsx'
: '.js';
? '.tsx'
: '.js';

return resolveApp(`${filename}${extension}`);
}
Expand All @@ -95,7 +95,7 @@ async function getInputs(entries: string[], source?: string) {
entries && entries.length
? entries
: (source && resolveApp(source)) ||
((await isDir(resolveApp('src'))) && (await jsOrTs('src/index')))
((await isDir(resolveApp('src'))) && (await jsOrTs('src/index')))
)
.map(file => glob(file))
.forEach(input => inputs.push(input));
Expand Down Expand Up @@ -168,7 +168,7 @@ async function moveTypes() {
overwrite: true,
});
await fs.remove(paths.appDist + '/src');
} catch (e) { }
} catch (e) {}
}

prog
Expand Down Expand Up @@ -371,7 +371,7 @@ prog
`);
try {
await moveTypes();
} catch (_error) { }
} catch (_error) {}
}
});
});
Expand Down Expand Up @@ -492,7 +492,7 @@ prog
// Allow overriding with jest.config
const jestConfigContents = require(paths.jestConfig);
jestConfig = { ...jestConfig, ...jestConfigContents };
} catch { }
} catch {}

argv.push(
'--config',
Expand Down

0 comments on commit ef91a9b

Please sign in to comment.