@db-ux/core-migration 2.3.1 → 2.4.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/build/index.js +30 -30
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -1,35 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // src/program.ts
4
- import { program } from "commander";
5
- var startProgram = (name, description, options2, action2) => {
6
- program.name(name).description(description);
7
- program.argument(
8
- "[function]",
9
- "function of this library you want to use [migration]"
10
- );
11
- for (const option of options2) {
12
- const short = (option.short && (option.short?.startsWith("-") ? option.short : `-${option.short}`)) ?? `-${option.name.charAt(0)}`;
13
- const long = option.long ?? `--${option.name} ${option.array ? "[" : "<"}${option.name}${option.array ? "s...]" : ">"}`;
14
- if (option.required) {
15
- program.requiredOption(
16
- `${short}, ${long}`,
17
- option.description ?? "",
18
- option.defaultValue
19
- );
20
- } else {
21
- program.option(
22
- `${short}, ${long}`,
23
- option.description ?? "",
24
- option.defaultValue
25
- );
26
- }
27
- }
28
- program.action(action2);
29
- program.parse();
30
- };
31
- var program_default = startProgram;
32
-
33
3
  // src/migration/color-q32024.ts
34
4
  var colorQ32024 = [
35
5
  // Basic backgrounds
@@ -623,6 +593,36 @@ var migrate = (options2, cli) => {
623
593
  return void 0;
624
594
  };
625
595
 
596
+ // src/program.ts
597
+ import { program } from "commander";
598
+ var startProgram = (name, description, options2, action2) => {
599
+ program.name(name).description(description);
600
+ program.argument(
601
+ "[function]",
602
+ "function of this library you want to use [migration]"
603
+ );
604
+ for (const option of options2) {
605
+ const short = (option.short && (option.short?.startsWith("-") ? option.short : `-${option.short}`)) ?? `-${option.name.charAt(0)}`;
606
+ const long = option.long ?? `--${option.name} ${option.array ? "[" : "<"}${option.name}${option.array ? "s...]" : ">"}`;
607
+ if (option.required) {
608
+ program.requiredOption(
609
+ `${short}, ${long}`,
610
+ option.description ?? "",
611
+ option.defaultValue
612
+ );
613
+ } else {
614
+ program.option(
615
+ `${short}, ${long}`,
616
+ option.description ?? "",
617
+ option.defaultValue
618
+ );
619
+ }
620
+ }
621
+ program.action(action2);
622
+ program.parse();
623
+ };
624
+ var program_default = startProgram;
625
+
626
626
  // src/cli.ts
627
627
  var action = async (_, options2) => {
628
628
  migrate(options2, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/core-migration",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "type": "module",
5
5
  "description": "Migration script for changing your code in between DB UX Design System v3 versions regarding BREAKING CHANGES.",
6
6
  "repository": {