From 9a515686ec7c9cb10cbc62c5b2f5fcffd775b19d Mon Sep 17 00:00:00 2001 From: Mr Sharafdin Date: Sun, 10 Mar 2024 19:35:32 +0300 Subject: [PATCH] Release v1.0.0-beta: Initial beta release of Yonode --- packages/yonode/package.json | 2 +- packages/yonode/src/index.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/yonode/package.json b/packages/yonode/package.json index a2469199..a23f7b80 100644 --- a/packages/yonode/package.json +++ b/packages/yonode/package.json @@ -1,7 +1,7 @@ { "name": "yonode", "description": "The Node.js Toolkit for Rapid Development.", - "version": "0.8.0", + "version": "1.0.0-beta", "author": "Mr Sharafdin", "license": "MIT", "main": "./src/index.js", diff --git a/packages/yonode/src/index.js b/packages/yonode/src/index.js index 3670a208..4895cbb9 100755 --- a/packages/yonode/src/index.js +++ b/packages/yonode/src/index.js @@ -98,7 +98,9 @@ if (projectName === ".") { const files = fs.readdirSync(cloneDirectory); if (files.length) { - console.log("The directory is not empty."); + console.log( + "Error: Directory not empty. Please use an empty directory or specify a new project name." + ); process.exit(1); } } @@ -117,7 +119,9 @@ if (!projectName) { const files = fs.readdirSync(cloneDirectory); if (files.length) { - console.log("The directory is not empty."); + console.log( + "Error: Directory not empty. Please use an empty directory or specify a new project name." + ); process.exit(1); } (projectName = name.projectName), main(); @@ -135,7 +139,7 @@ function main() { .then((answer) => { if (answer.language_type === "TypeScript") { console.log( - "Currently, TypeScript is unavailable. Expect its launch in v1.5.0. \nFor more info, visit: https://docs.yonode.org." + "Currently, TypeScript is unavailable. Expect its launch in v1.5.0. \nFor more info, visit: https://docs.yonode.org/#typescript" ); process.exit(0); }