From 738dde40aed98f7558c3737464094eab62ea1599 Mon Sep 17 00:00:00 2001 From: Kononnable Date: Sun, 25 Aug 2019 21:45:49 +0200 Subject: [PATCH] changed spacing in tomg-config files --- src/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index ada1ac9..73fed22 100644 --- a/src/index.ts +++ b/src/index.ts @@ -492,10 +492,11 @@ async function GetUtilParametersByInquirer() { } ])) as any; if (saveConfig) { - await fs.writeJson(path.resolve(process.cwd(), ".tomg-config"), [ - connectionOptions, - generationOptions - ]); + await fs.writeJson( + path.resolve(process.cwd(), ".tomg-config"), + [connectionOptions, generationOptions], + { spaces: 2 } + ); console.log(`[${new Date().toLocaleTimeString()}] Config file saved.`); console.warn( `\x1b[33m[${new Date().toLocaleTimeString()}] WARNING: Password was saved as plain text.\x1b[0m`