diff --git a/.changeset/dry-walls-lead.md b/.changeset/dry-walls-lead.md new file mode 100644 index 00000000..5e6813c1 --- /dev/null +++ b/.changeset/dry-walls-lead.md @@ -0,0 +1,5 @@ +--- +"@cartesi/cli": patch +--- + +fix case of no cartesi.toml diff --git a/apps/cli/src/base.ts b/apps/cli/src/base.ts index d1c34470..4b703b27 100644 --- a/apps/cli/src/base.ts +++ b/apps/cli/src/base.ts @@ -49,6 +49,9 @@ export const getApplicationConfig = (configPaths: string[]): Config => { if (fs.existsSync(configPath)) { return fs.readFileSync(configPath).toString(); } + if (configPath === "cartesi.toml") { + return ""; + } throw new Error(`Config file ${configPath} does not exist`); }); return parse(tomls);