co-authored by
Nick Bolton
parent
0559886b77
commit
db4c544b72
+1
-1
@@ -37,7 +37,7 @@ export function loadJsonFile<T extends Json>(...paths: string[]): T {
|
|||||||
const joinedPaths = path.join(...paths);
|
const joinedPaths = path.join(...paths);
|
||||||
|
|
||||||
if (!fs.existsSync(joinedPaths)) {
|
if (!fs.existsSync(joinedPaths)) {
|
||||||
console.debug(`Skipping nonexisting file: ${joinedPaths}`);
|
console.log(`Skipping nonexisting file: ${joinedPaths}`);
|
||||||
return {} as T;
|
return {} as T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user