fix: proper fix .json5 extension

This commit is contained in:
Rhys Arkins 2020-07-27 08:21:52 +02:00
parent f10cafbaad
commit 85f89e3591

View file

@ -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;