Skip to content

Commit

Permalink
fix: move project .json code out of catch
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Nov 22, 2020
1 parent 2439529 commit 31739b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/utils/src/tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ function getTsConfigFilePath(project: string, fallbackProject?: string[]) {
if (!projectStats) {
try {
projectStats = fs.statSync(project + '.json')
} catch {
if (projectStats) {
project = project + '.json'
}
} catch {
// do nothing
}
}
if (projectStats && projectStats.isDirectory()) {
Expand Down

0 comments on commit 31739b1

Please sign in to comment.