@dolphjs/cli 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import { program } from "commander";
|
|
3
|
-
import { description, version } from "./read_package_json.js";
|
|
4
3
|
export const packageDescription = () => {
|
|
5
|
-
program
|
|
4
|
+
program
|
|
5
|
+
.version("1.0.3")
|
|
6
|
+
.description(chalk.cyan("The dolphjs-cli is a tool for efficient intialization and management of a dolphjs project"));
|
|
6
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolphjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "The dolphjs-cli is a tool for efficient intialization and management of a dolphjs project",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"repository": "https://github.com/dolphjs/dolph-cli.git",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
const packageJsonPath = path.join(process.cwd(), "package.json");
|
|
4
|
-
const packageJsonContent = readFileSync(packageJsonPath, "utf8");
|
|
5
|
-
const packageJson = JSON.parse(packageJsonContent);
|
|
6
|
-
const version = packageJson.version;
|
|
7
|
-
const name = packageJson.name;
|
|
8
|
-
const description = packageJson.description;
|
|
9
|
-
export { version, name, description };
|