Skip to content

Commit

Permalink
better message for missing 'alem.config.json' file
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 16, 2024
1 parent afd819c commit 37a932e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const path = require("path");
function read_alem_config() {
const configPath = path.join(".", "alem.config.json");
if (!fs.existsSync(configPath)) {
throw new Error(`alem.config.json not found`);
console.warn(`INFO: File 'alem.config.json' not found! If you're using the CLI within a project, you must create this file to setup your project. Take a look at the Além docs: https://alem.dev/?path=config-file.`);
console.log("\n")
return {};
}
const configRaw = fs.readFileSync(configPath);
try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alem",
"description": "Create web3 applications for NEAR BOS with a focus on performance and friendly development.",
"version": "1.0.0-beta.18",
"version": "1.0.0-beta.19",
"main": "main.js",
"types": "index.d.ts",
"author": "Wenderson Pires - wendersonpires.near",
Expand Down

0 comments on commit 37a932e

Please sign in to comment.