From ad24db35c3ec6b45c999b0ac7268f897cf7b7cd1 Mon Sep 17 00:00:00 2001 From: Landon Yarrington Date: Sun, 14 Nov 2021 14:13:52 -0700 Subject: [PATCH] lint --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 1b3cad22..8c413229 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -43,7 +43,7 @@ const parser = new YargsParser({ return require(path) } else if (path.match(/\.json$/)) { // Addresses: https://github.com/yargs/yargs/issues/2040 - return JSON.parse(readFileSync(path, 'utf8')); + return JSON.parse(readFileSync(path, 'utf8')) } else { throw Error('only .json config files are supported in ESM') }