Skip to content

Commit

Permalink
fix: Prevent exception on start when no TS config is found (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalduez committed Dec 1, 2021
1 parent 4a51f7b commit 64afabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getStaticTypes.js
Expand Up @@ -24,7 +24,6 @@ module.exports = async (playroomConfig) => {
} = playroomConfig;

const tsConfigPath = await findUp('tsconfig.json', { cwd });
const basePath = path.dirname(tsConfigPath);

if (!tsConfigPath) {
return {};
Expand All @@ -40,6 +39,7 @@ module.exports = async (playroomConfig) => {
throw error;
}

const basePath = path.dirname(tsConfigPath);
const { options, errors } = ts.parseJsonConfigFileContent(
config,
ts.sys,
Expand Down

0 comments on commit 64afabe

Please sign in to comment.