Skip to content

Commit

Permalink
fix: read deprecated config file
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Feb 23, 2024
1 parent b0ffd0a commit f05a603
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli-tools/src/configs/juno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f05a603

Please sign in to comment.