Skip to content

Commit

Permalink
Merge pull request #61 from ruru-m07/fix/cli
Browse files Browse the repository at this point in the history
fix(cli): init directory errors
  • Loading branch information
ruru-m07 authored Aug 28, 2024
2 parents 0be2e34 + 7e7a8bd commit e7ed86b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ruru-ui-cli",
"version": "0.0.6",
"version": "0.0.7",
"description": "Ruru UI - CLI - add components and dependencies to your project",
"keywords": [
"cli",
Expand Down
7 changes: 1 addition & 6 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import "dotenv/config";
import { Command } from "commander";
import { getPackageInfo } from "./utils";
import { init } from "./commands/init";
import { add } from "./commands/add";

Expand All @@ -12,11 +11,7 @@ async function main(): Promise<void> {
program
.name("Ruru-UI")
.description("CLI tool to initialize Ruru-UI")
.version(
getPackageInfo().version || "1.0.0",
"-v, --version",
"display the version number",
);
.version("0.0.7", "-v, --version", "display the version number");

program.addCommand(init).addCommand(add);

Expand Down
10 changes: 0 additions & 10 deletions packages/cli/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
import path from "path";
import fs from "fs-extra";
import { type PackageJson } from "type-fest";

export function getPackageInfo() {
const packageJsonPath = path.join("../../package.json");

return fs.readJSONSync(packageJsonPath) as PackageJson;
}

export function config() {
// const baseUrl = "http://localhost:3000";

Expand Down

0 comments on commit e7ed86b

Please sign in to comment.