mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
fix: proper fix .json5 extension
This commit is contained in:
parent
f10cafbaad
commit
85f89e3591
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ type PackageJson = {
|
||||||
console.log(`Validating ${file}`);
|
console.log(`Validating ${file}`);
|
||||||
try {
|
try {
|
||||||
let jsonContent;
|
let jsonContent;
|
||||||
if (file.endsWith('.json5'))) {
|
if (file.endsWith('.json5')) {
|
||||||
jsonContent = JSON5.parse(rawContent) as PackageJson;
|
jsonContent = JSON5.parse(rawContent) as PackageJson;
|
||||||
} else {
|
} else {
|
||||||
jsonContent = JSON.parse(rawContent) as PackageJson;
|
jsonContent = JSON.parse(rawContent) as PackageJson;
|
||||||
|
|
Loading…
Reference in a new issue