From f05a6037a7ce5681179288e2c3f8be2177cec5be Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 23 Feb 2024 10:23:29 +0100 Subject: [PATCH] fix: read deprecated config file --- packages/cli-tools/src/configs/juno.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli-tools/src/configs/juno.config.ts b/packages/cli-tools/src/configs/juno.config.ts index 7c8d1bad..7c26bd3e 100644 --- a/packages/cli-tools/src/configs/juno.config.ts +++ b/packages/cli-tools/src/configs/juno.config.ts @@ -65,8 +65,9 @@ export const junoConfigFile = ({ }; } - // Support for original juno.json file - const junoJsonDeprecated = join(process.cwd(), filename.replace('config.', '')); + // Support for original juno.json or juno.dev.json file + // juno.config || juno.dev.config => juno.json || juno.dev.json + const junoJsonDeprecated = join(process.cwd(), `${filename.replace('.config', '')}.json`); if (existsSync(junoJsonDeprecated)) { return {