Skip to content

Commit

Permalink
fix: proper fix .json5 extension
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jul 27, 2020
1 parent f10cafb commit 85f89e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config-validator.ts
Expand Up @@ -46,7 +46,7 @@ type PackageJson = {
console.log(`Validating ${file}`);
try {
let jsonContent;
if (file.endsWith('.json5'))) {
if (file.endsWith('.json5')) {
jsonContent = JSON5.parse(rawContent) as PackageJson;
} else {
jsonContent = JSON.parse(rawContent) as PackageJson;
Expand Down

0 comments on commit 85f89e3

Please sign in to comment.