@transight-design/cli 0.2.3 → 0.3.0

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -110,7 +110,7 @@ var initCommand = new Command("init").description("Transight Design System \uBC8
110
110
  // src/commands/add.ts
111
111
  import { Command as Command2 } from "commander";
112
112
  import pc3 from "picocolors";
113
- var addCommand = new Command2("add").description("\uCEF4\uD3EC\uB10C\uD2B8/\uD329 \uCD94\uAC00 (\uC608: transight-design add essential \uB610\uB294 button card dialog)").argument("<components...>", "\uC124\uCE58\uD560 \uCEF4\uD3EC\uB10C\uD2B8 \uB610\uB294 \uD329 \uC774\uB984\uB4E4").option("--dry-run", "\uC2E4\uD589\uD558\uC9C0 \uC54A\uACE0 \uD638\uCD9C\uD560 \uBA85\uB839\uB9CC \uCD9C\uB825", false).option("--ref <ref>", "GitHub \uB808\uD37C\uB7F0\uC2A4 (\uBE0C\uB79C\uCE58\xB7\uD0DC\uADF8\xB7SHA)").action(async (components, options) => {
113
+ var addCommand = new Command2("add").description("\uCEF4\uD3EC\uB10C\uD2B8/\uD329 \uCD94\uAC00 (\uC608: transight-design add essential \uB610\uB294 button card dialog)").argument("<components...>", "\uC124\uCE58\uD560 \uCEF4\uD3EC\uB10C\uD2B8 \uB610\uB294 \uD329 \uC774\uB984\uB4E4").option("--dry-run", "\uC2E4\uD589\uD558\uC9C0 \uC54A\uACE0 \uD638\uCD9C\uD560 \uBA85\uB839\uB9CC \uCD9C\uB825", false).option("--ref <ref>", "GitHub \uB808\uD37C\uB7F0\uC2A4 (\uBE0C\uB79C\uCE58\xB7\uD0DC\uADF8\xB7SHA)").option("--overwrite", "\uAE30\uC874 \uD30C\uC77C\uC744 prompt \uC5C6\uC774 \uB36E\uC5B4\uC4F0\uAE30 (\uC5C5\uB370\uC774\uD2B8 \uC6A9)", false).action(async (components, options) => {
114
114
  if (components.length === 0) {
115
115
  console.error(pc3.red("\uCEF4\uD3EC\uB10C\uD2B8 \uC774\uB984\uC744 \uD558\uB098 \uC774\uC0C1 \uC9C0\uC815\uD574\uC8FC\uC138\uC694."));
116
116
  process.exit(1);
@@ -119,7 +119,9 @@ var addCommand = new Command2("add").description("\uCEF4\uD3EC\uB10C\uD2B8/\uD32
119
119
  console.log(
120
120
  pc3.bold(pc3.cyan("Transight Design System")) + ` \u2014 add ${pc3.yellow(components.join(", "))}`
121
121
  );
122
- const code = await runShadcn(["add", ...addresses], { dryRun: options.dryRun });
122
+ const args = ["add", ...addresses];
123
+ if (options.overwrite) args.push("--overwrite");
124
+ const code = await runShadcn(args, { dryRun: options.dryRun });
123
125
  process.exit(code);
124
126
  });
125
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transight-design/cli",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Transight Design System CLI — thin wrapper around `shadcn`",
5
5
  "license": "MIT",
6
6
  "type": "module",