From aa3b352aa22b7cecb2117ced37f8e33202fa492b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enes=20Gen=C3=A7?= Date: Sat, 9 Oct 2021 17:33:39 +0300 Subject: [PATCH] fix: create the config file on project root instead of the current folder --- src/commands/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/init.ts b/src/commands/init.ts index c63cf3c..610bc24 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -33,5 +33,5 @@ export default async () => { }; const file = response.configFormat === 'json' ? JSON.stringify(config, null, 2) : YAML.stringify(config); - return writeFile(`.sapphirerc.${response.configFormat}`, file); + return writeFile(packageJson.replace('package.json', `.sapphirerc.${response.configFormat}`), file); };