From c98b5446895073283757b629b61c00e5d6f1c81f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Sep 2022 16:37:56 -0400 Subject: [PATCH] *Process json after saving to store in active config --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3444138..49a2208 100644 --- a/src/index.ts +++ b/src/index.ts @@ -176,10 +176,10 @@ export default class Config { assert(typeof data === "object"); assert(!Array.isArray(data)); - fs.writeFileSync( - Path.join(this.str("configdir"), file), - JSON.stringify(data) - ); + const fullPath = Path.join(this.str("configdir"), file); + + fs.writeFileSync(fullPath, JSON.stringify(data)); + this.openJson(fullPath); } public filter(name: string) {