From 618ab73d14085b70a72b3b89dcba6b62a5a2b9a5 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Dec 2022 15:08:51 -0500 Subject: [PATCH] *Remove the need to add a file extension since all files should be JSON --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 235c743..a28caf7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -99,7 +99,7 @@ export default class Config { assert(!Array.isArray(data)); const configDir = this.str("configdir"); - const fullPath = Path.join(configDir, file); + const fullPath = Path.join(configDir, `${file}.json`); if (!fs.existsSync(configDir)) { fs.mkdirSync(configDir, { recursive: true });