Skip to content

Commit

Permalink
fix: command calls issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vgseven committed Jun 27, 2024
1 parent 12f3880 commit 47351b8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-pens-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@silver-radium/init": patch
---

fix: command calls issues fixed
Binary file modified bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ async function cli() {
process.exit(1);
}

program.version("0.1.0", "-v, --version", "Output the current version");

program
.command("--new")
.command("-n")
.command("new")
.description("Initialize a new project with your tools")
.action(async () => {
setTimeout(1000);
Expand All @@ -23,8 +24,7 @@ async function cli() {
});

program
.command("--with")
.command("-w")
.command("with")
.description("Initialize a new project with starter template")
.action(async () => {
setTimeout(1000);
Expand Down
17 changes: 2 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,14 @@
"directory": "silver-radium/init"
},
"homepage": "https://github.com/silver-radium/init",
"keywords": [
"radium",
"react",
"nextjs",
"tailwindcss",
"radix-ui",
"astro",
"solidjs",
"million"
],
"keywords": ["radium", "react", "nextjs", "tailwindcss", "radix-ui", "astro", "solidjs", "million"],
"module": "index.ts",
"type": "module",
"exports": "./dist/index.js",
"bin": {
"init": "./dist/index.js"
},
"files": [
"dist",
"README.md",
"package.json"
],
"files": ["dist", "README.md", "package.json"],
"engines": {
"bun": ">=1.1"
},
Expand Down

0 comments on commit 47351b8

Please sign in to comment.