@reliverse/dler 1.7.2 → 1.7.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.
Files changed (36) hide show
  1. package/README.md +93 -71
  2. package/bin/app/agg/run.js +2 -2
  3. package/bin/app/check/cmd.d.ts +37 -0
  4. package/bin/app/check/cmd.js +74 -4
  5. package/bin/app/cmds.d.ts +15 -20
  6. package/bin/app/cmds.js +16 -76
  7. package/bin/app/copy/cmd.d.ts +10 -5
  8. package/bin/app/copy/cmd.js +77 -47
  9. package/bin/app/inject/cmd.d.ts +13 -0
  10. package/bin/app/inject/cmd.js +33 -21
  11. package/bin/app/merge/cmd.d.ts +63 -5
  12. package/bin/app/merge/cmd.js +220 -25
  13. package/bin/app/migrate/cmd.d.ts +5 -0
  14. package/bin/app/migrate/cmd.js +17 -1
  15. package/bin/app/rempts/{cmdsTs/cmd.d.ts → cmd.d.ts} +13 -4
  16. package/bin/app/rempts/cmd.js +304 -0
  17. package/bin/cli.js +6 -11
  18. package/bin/libs/sdk/sdk-impl/cfg/info.js +1 -1
  19. package/package.json +2 -2
  20. package/bin/app/deps/cmd.d.ts +0 -45
  21. package/bin/app/deps/cmd.js +0 -84
  22. package/bin/app/inject/README.md +0 -139
  23. package/bin/app/inject/expect/cmd.d.ts +0 -20
  24. package/bin/app/inject/expect/cmd.js +0 -43
  25. package/bin/app/rempts/README.md +0 -121
  26. package/bin/app/rempts/cmd/cmd.d.ts +0 -16
  27. package/bin/app/rempts/cmd/cmd.js +0 -157
  28. package/bin/app/rempts/cmd/templates.d.ts +0 -2
  29. package/bin/app/rempts/cmd/templates.js +0 -30
  30. package/bin/app/rempts/cmdsTs/cmd.js +0 -96
  31. package/bin/app/rempts/migrate/cmd.d.ts +0 -14
  32. package/bin/app/rempts/migrate/cmd.js +0 -38
  33. /package/bin/app/inject/{expect/impl.d.ts → impl.d.ts} +0 -0
  34. /package/bin/app/inject/{expect/impl.js → impl.js} +0 -0
  35. /package/bin/app/{rempts/migrate/impl/commander.d.ts → migrate/codemods/commander-rempts.d.ts} +0 -0
  36. /package/bin/app/{rempts/migrate/impl/commander.js → migrate/codemods/commander-rempts.js} +0 -0
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  - 🎯 optimized for speed and modern workflows
16
16
  - ✨ packed with powerful features under the hood
17
17
  - 🛠️ converts typescript aliases to relative paths
18
- - 🔌 plugin system with [15 built-in plugins](#-plugins) included
18
+ - 🔌 [15 built-in helper dler commands](#-commands) included
19
19
  - 📝 highly configurable flow via a configuration file
20
20
  - 🔜 `libraries` plugin —> dler monorepo implementation
21
21
  - 🧼 cleans up your internal logs from the build dist
@@ -117,17 +117,17 @@ bun dev # bun src/cli.ts --dev
117
117
  dler [build|pub] # if installed globally
118
118
  ```
119
119
 
120
- ## 🔌 plugins
120
+ ## 🔌 commands
121
121
 
122
- dler ships with a flexible plugin system (aka plugins) and **15 built-in plugins** (from [reliverse addons](https://reliverse.org/addons) collection).
122
+ dler ships with a flexible command system (prev. plugins) and **15 built-in commands** (from [reliverse addons](https://reliverse.org/addons) collection).
123
123
 
124
- feel free to create your own plugins. plugins can be implemented as built-in directly in `src/app/<plugin>/impl/*` and then imported from `src/app/<plugin>/cmd.ts`; or implemented in your own library and then imported from `src/app/<plugin>/cmd.ts`.
124
+ feel free to create your own commands. commands can be implemented as built-in directly in `src/app/<command>/impl/*` and then imported from `src/app/<command>/cmd.ts`; or implemented in your own library and then imported from `src/app/<command>/cmd.ts`.
125
125
 
126
- if you run just `dler` — it will display a list of plugins which you can launch interactively.
126
+ if you run just `dler` — it will display a list of commands which you can launch interactively.
127
127
 
128
- ## **available plugins**
128
+ ## **available commands**
129
129
 
130
- [agg](#1-agg), [check](#2-check-aka-rules-of-dler), [build](#3-build), [conv](#4-conv), [deps](#5-deps), [inject](#6-inject), [libs](#7-libs), [merge](#8-merge), [migrate](#9-migrate), [pub](#10-pub), [relifso](#11-relifso), [relinka](#12-relinka), [rempts](#13-rempts), [spell](#14-spell), [split](#15-split)
130
+ [agg](#1-agg) [build](#2-build) [check](#3-check) [conv](#4-conv) [copy](#5-copy) [init](#6-init) [inject](#7-inject) [libs](#8-libs) [merge](#9-merge) [migrate](#10-migrate) [pub](#11-pub) [rempts](#13-rempts) [rename](#13-rename) [spell](#14-spell) [split](#15-split)
131
131
 
132
132
  ### 1. `agg`
133
133
 
@@ -150,9 +150,17 @@ bun tools:agg # shortcut for:
150
150
  bun src/cli.ts tools --dev --tool agg --input src/libs/sdk/sdk-impl --out src/libs/sdk/sdk-mod.ts --recursive --named --strip src/libs/sdk
151
151
  ```
152
152
 
153
- ### 2. `check` (aka rules of dler)
153
+ ### 2. `build`
154
154
 
155
- checks your project for common issues and potential improvements. This command performs several types of checks:
155
+ since dler is fully modular, build command is separated for its own build-in plugin as well.
156
+
157
+ ```bash
158
+ bun dler build ...
159
+ ```
160
+
161
+ ### 3. `check`
162
+
163
+ checks your project for common issues and potential improvements. This command performs several types of checks (aka rules of dler):
156
164
 
157
165
  - **File Extensions**: Validates that files have the correct extensions based on their location and module resolution strategy
158
166
  - Enforces `.ts` files in source and JSR distributions
@@ -216,14 +224,6 @@ dler check --json
216
224
  **pro tip:**
217
225
  the command will prompt you only for the arguments you haven't provided. for example, if you specify `--directory` but not `--checks`, it will only prompt you to select which checks to run.
218
226
 
219
- ### 3. `build`
220
-
221
- since dler is fully modular, build command is separated for its own build-in plugin as well.
222
-
223
- ```bash
224
- dler build ...
225
- ```
226
-
227
227
  ### 4. `conv`
228
228
 
229
229
  not yet documented.
@@ -284,11 +284,25 @@ deep imports like `dep/some/file` or `@org/dep/some/thing` are always resolved t
284
284
  - **Dev-only Dependencies**: Packages that are only in `devDependencies` but imported in production code
285
285
  - **Duplicate Dependencies**: Packages listed in both `dependencies` and `devDependencies`
286
286
 
287
- ### 6. `inject`
287
+ ### 5. `copy`
288
+
289
+ ```bash
290
+ # simple example:
291
+ bun dler copy --s "src/**/*.ts" --d "dist"
292
+
293
+ # advanced example:
294
+ bun dler copy --s ".temp/packages/*/lib/**/*" --d "src/libs/sdk/sdk-impl/rules/external"
295
+ ```
296
+
297
+ ### 6. `init`
288
298
 
289
299
  not yet documented.
290
300
 
291
- ### 7. `libs`
301
+ ### 7. `inject`
302
+
303
+ not yet documented.
304
+
305
+ ### 8. `libs`
292
306
 
293
307
  builds and publishes specific subdirectories of your main project as standalone packages.
294
308
 
@@ -324,11 +338,19 @@ libslist: {
324
338
 
325
339
  - more magic commands coming soon...
326
340
 
327
- ### 8. `merge`
341
+ ### 9. `merge`
328
342
 
329
- not yet documented.
343
+ merges multiple files into a single file.
330
344
 
331
- ### 9. `migrate`
345
+ ```bash
346
+ # simple example:
347
+ bun dler merge --s "src/**/*.ts" --d "dist/merged.ts"
348
+
349
+ # advanced example:
350
+ bun dler merge --s ".temp1/packages/*/lib/**/*" --d ".temp2/merged.ts" --sort "mtime" --header "// Header" --footer "// Footer" --dedupe
351
+ ```
352
+
353
+ ### 10. `migrate`
332
354
 
333
355
  helps migrate between different libraries and module resolution strategies. currently supports:
334
356
 
@@ -427,7 +449,46 @@ dler migrate --lib nodenext-bundler --target nodenext --dryRun
427
449
  - handles both relative and alias imports
428
450
  - supports both .ts and .tsx files
429
451
 
430
- **next steps after migration:**
452
+ #### `console-relinka`
453
+
454
+ [@reliverse/relinka](https://github.com/reliverse/relinka)'s best friend. Converts between different logging formats (console, consola method/object, and relinka's function/method/object styles).
455
+
456
+ ```bash
457
+ # Basic usage
458
+ dler relinka --input <file> --from <source> --to <target>
459
+
460
+ # Examples:
461
+ # Convert console.log to relinka function style
462
+ dler relinka --input src/app.ts --from console --to relinkaFunction
463
+
464
+ # Convert consola method to relinka method style
465
+ dler relinka --input src/app.ts --from consolaMethod --to relinkaMethod
466
+
467
+ # Convert between relinka styles
468
+ dler relinka --input src/app.ts --from relinkaMethod --to relinkaObject
469
+
470
+ # Convert to consola object style
471
+ dler relinka --input src/app.ts --from relinkaFunction --to consolaObject
472
+ ```
473
+
474
+ **Supported formats:**
475
+
476
+ - `console`: Standard console logging (`console.log(message, ...args)`)
477
+ - `consolaMethod`: Consola method style (`consola.log(message, ...args)`)
478
+ - `consolaObject`: Consola object style (`consola({ level, message, title?, args? })`)
479
+ - `relinkaFunction`: Relinka function style (`relinka("level", message, ...args)`)
480
+ - `relinkaMethod`: Relinka method style (`relinka.level(message, ...args)`)
481
+ - `relinkaObject`: Relinka object style (`relinka({ level, message, title?, args? })`)
482
+
483
+ **Special features:**
484
+
485
+ - Preserves additional arguments in all formats
486
+ - Handles special box format with title and message
487
+ - Maintains proper escaping and formatting
488
+ - Supports conversion between any combination of formats
489
+ - Supports both consola method and object styles
490
+
491
+ #### next steps after migration
431
492
 
432
493
  - for path-pathkit:
433
494
  1. run 'bun install' to install @reliverse/pathkit
@@ -457,68 +518,29 @@ dler migrate --lib nodenext-bundler --target nodenext --dryRun
457
518
  3. review any file system operations that might need manual updates
458
519
  4. consider using globby's advanced features like pattern matching and recursive searching
459
520
 
460
- ### 10. `pub`
521
+ ### 11. `pub`
461
522
 
462
523
  pub command is separated for its own build-in plugin as well.
463
524
 
464
525
  it already calls build command by itself, so you don't need to run `dler build` separately.
465
526
 
466
527
  ```bash
467
- dler pub ...
468
- ```
469
-
470
- ### 11. `relifso`
471
-
472
- ```bash
473
- dler relifso init ...
528
+ bun dler pub ...
474
529
  ```
475
530
 
476
- ### 12. `relinka`
531
+ ### 13. `rempts`
477
532
 
478
- [@reliverse/relinka](https://github.com/reliverse/relinka)'s best friend. Converts between different logging formats (console, consola method/object, and relinka's function/method/object styles).
533
+ @reliverse/rempts's best friend. learn more in its [docs](https://github.com/reliverse/rempts).
479
534
 
480
535
  ```bash
481
- # Basic usage
482
- dler relinka --input <file> --from <source> --to <target>
483
-
484
- # Examples:
485
- # Convert console.log to relinka function style
486
- dler relinka --input src/app.ts --from console --to relinkaFunction
487
-
488
- # Convert consola method to relinka method style
489
- dler relinka --input src/app.ts --from consolaMethod --to relinkaMethod
490
-
491
- # Convert between relinka styles
492
- dler relinka --input src/app.ts --from relinkaMethod --to relinkaObject
493
-
494
- # Convert to consola object style
495
- dler relinka --input src/app.ts --from relinkaFunction --to consolaObject
536
+ bun dler rempts
537
+ bun dler rempts --init cmd1 cmd2
496
538
  ```
497
539
 
498
- **Supported formats:**
499
-
500
- - `console`: Standard console logging (`console.log(message, ...args)`)
501
- - `consolaMethod`: Consola method style (`consola.log(message, ...args)`)
502
- - `consolaObject`: Consola object style (`consola({ level, message, title?, args? })`)
503
- - `relinkaFunction`: Relinka function style (`relinka("level", message, ...args)`)
504
- - `relinkaMethod`: Relinka method style (`relinka.level(message, ...args)`)
505
- - `relinkaObject`: Relinka object style (`relinka({ level, message, title?, args? })`)
506
-
507
- **Special features:**
508
-
509
- - Preserves additional arguments in all formats
510
- - Handles special box format with title and message
511
- - Maintains proper escaping and formatting
512
- - Supports conversion between any combination of formats
513
- - Supports both consola method and object styles
514
-
515
- ### 13. `rempts`
516
-
517
- @reliverse/rempts's best friend. learn more in its [docs](https://github.com/reliverse/rempts).
540
+ ### 13. `rename`
518
541
 
519
542
  ```bash
520
- dler rempts init --cmd my-cmd-1
521
- dler rempts init --cmds
543
+ bun dler rename ...
522
544
  ```
523
545
 
524
546
  ### 14. `spell`
@@ -595,7 +617,7 @@ p.s. [see how rse cli uses hooked=true](https://github.com/reliverse/rse/blob/ma
595
617
  splits your code/text file into multiple files.
596
618
 
597
619
  ```bash
598
- dler split ...
620
+ bun dler split ...
599
621
  ```
600
622
 
601
623
  ## api (for advanced users)
@@ -6,7 +6,7 @@ import {
6
6
  } from "@reliverse/rempts";
7
7
  import { existsSync } from "node:fs";
8
8
  import { resolve } from "node:path";
9
- import { getCmdAgg } from "../cmds.js";
9
+ import { getAggCmd } from "../cmds.js";
10
10
  async function loadConfig() {
11
11
  const configPath = resolve(".config/dler.ts");
12
12
  if (!existsSync(configPath)) return null;
@@ -84,7 +84,7 @@ export async function promptAggCommand() {
84
84
  defaultValue: out.replace(/\.(ts|js)$/, ".types.$1")
85
85
  });
86
86
  }
87
- await runCmd(await getCmdAgg(), [
87
+ await runCmd(await getAggCmd(), [
88
88
  `--imports=${imports}`,
89
89
  `--input=${input}`,
90
90
  `--named=${named}`,
@@ -15,5 +15,42 @@ declare const _default: import("@reliverse/rempts").Command<{
15
15
  type: "boolean";
16
16
  description: string;
17
17
  };
18
+ deps: {
19
+ type: "boolean";
20
+ description: string;
21
+ };
22
+ all: {
23
+ type: "boolean";
24
+ description: string;
25
+ };
26
+ ignore: {
27
+ type: "string";
28
+ description: string;
29
+ };
30
+ builtins: {
31
+ type: "boolean";
32
+ description: string;
33
+ };
34
+ dev: {
35
+ type: "boolean";
36
+ description: string;
37
+ };
38
+ peer: {
39
+ type: "boolean";
40
+ description: string;
41
+ };
42
+ optional: {
43
+ type: "boolean";
44
+ description: string;
45
+ };
46
+ fix: {
47
+ type: "boolean";
48
+ description: string;
49
+ };
50
+ depth: {
51
+ type: "number";
52
+ description: string;
53
+ default: number;
54
+ };
18
55
  }>;
19
56
  export default _default;
@@ -1,3 +1,5 @@
1
+ import path from "@reliverse/pathkit";
2
+ import { re } from "@reliverse/relico";
1
3
  import { relinka } from "@reliverse/relinka";
2
4
  import {
3
5
  defineCommand,
@@ -8,7 +10,9 @@ import {
8
10
  } from "@reliverse/rempts";
9
11
  import { checkDlerConfigHealth } from "../../libs/sdk/sdk-impl/rules/reliverse/dler-config-health/dler-config-health.js";
10
12
  import { checkFileExtensions } from "../../libs/sdk/sdk-impl/rules/reliverse/file-extensions/file-extensions.js";
13
+ import { analyzeDependencies } from "../../libs/sdk/sdk-impl/rules/reliverse/missing-deps/analyzer.js";
11
14
  import { checkMissingDependencies } from "../../libs/sdk/sdk-impl/rules/reliverse/missing-deps/deps-mod.js";
15
+ import { formatOutput } from "../../libs/sdk/sdk-impl/rules/reliverse/missing-deps/formatter.js";
12
16
  import { checkNoIndexFiles } from "../../libs/sdk/sdk-impl/rules/reliverse/no-index-files/no-index-files.js";
13
17
  import { checkPackageJsonHealth } from "../../libs/sdk/sdk-impl/rules/reliverse/package-json-health/package-json-health.js";
14
18
  import { checkPathExtensions } from "../../libs/sdk/sdk-impl/rules/reliverse/path-extensions/path-extensions.js";
@@ -18,10 +22,11 @@ import { displayCheckResults } from "../../libs/sdk/sdk-impl/rules/rules-mod.js"
18
22
  export default defineCommand({
19
23
  meta: {
20
24
  name: "check",
21
- version: "1.0.0",
22
- description: "check your codebase source and dists for any issues."
25
+ version: "2.0.0",
26
+ description: "Check your codebase for issues (deps, extensions, config, etc) or analyze dependencies."
23
27
  },
24
28
  args: defineArgs({
29
+ // --- check args ---
25
30
  directory: {
26
31
  type: "string",
27
32
  description: "directory to check (src, dist-npm, dist-jsr, dist-libs/npm, dist-libs/jsr, or all)"
@@ -37,9 +42,76 @@ export default defineCommand({
37
42
  json: {
38
43
  type: "boolean",
39
44
  description: "output results in JSON format"
45
+ },
46
+ // --- deps args ---
47
+ deps: {
48
+ type: "boolean",
49
+ description: "run dependency analysis instead of codebase checks"
50
+ },
51
+ all: {
52
+ type: "boolean",
53
+ description: "show all dependencies (both listed and not listed)"
54
+ },
55
+ ignore: {
56
+ type: "string",
57
+ description: "comma-separated patterns to ignore (for deps)"
58
+ },
59
+ builtins: {
60
+ type: "boolean",
61
+ description: "include Node.js built-in modules in the output (for deps)"
62
+ },
63
+ dev: {
64
+ type: "boolean",
65
+ description: "check devDependencies instead of dependencies (for deps)"
66
+ },
67
+ peer: {
68
+ type: "boolean",
69
+ description: "check peerDependencies instead of dependencies (for deps)"
70
+ },
71
+ optional: {
72
+ type: "boolean",
73
+ description: "check optionalDependencies instead of dependencies (for deps)"
74
+ },
75
+ fix: {
76
+ type: "boolean",
77
+ description: "automatically add missing dependencies to package.json (for deps)"
78
+ },
79
+ depth: {
80
+ type: "number",
81
+ description: "maximum directory depth to scan (0 for unlimited, for deps)",
82
+ default: 0
40
83
  }
41
84
  }),
42
85
  async run({ args }) {
86
+ if (args.deps) {
87
+ try {
88
+ const directory = path.resolve(args.directory ?? ".");
89
+ const ignorePatterns = args.ignore ? args.ignore.split(",") : [];
90
+ const options = {
91
+ directory,
92
+ showAll: args.all,
93
+ ignorePatterns,
94
+ json: args.json,
95
+ builtins: args.builtins,
96
+ dev: args.dev,
97
+ peer: args.peer,
98
+ optional: args.optional,
99
+ fix: args.fix,
100
+ depth: args.depth
101
+ };
102
+ console.log(re.gray(`Scanning directory: ${directory}`));
103
+ const result = await analyzeDependencies(options);
104
+ const output = formatOutput(result, options);
105
+ console.log(output);
106
+ if (result.missingDependencies.length > 0) {
107
+ process.exit(1);
108
+ }
109
+ } catch (error) {
110
+ console.error("Error:", error);
111
+ process.exit(1);
112
+ }
113
+ return;
114
+ }
43
115
  relinka(
44
116
  "info",
45
117
  "this command checks your codebase for extension and dependency issues."
@@ -70,9 +142,7 @@ export default defineCommand({
70
142
  title: "select a directory to check",
71
143
  options: [
72
144
  { label: "all directories", value: "all" },
73
- // TODO: run this automatically BEFORE `dler build`
74
145
  { label: "src (typescript source)", value: "src" },
75
- // TODO: run this automatically AFTER `dler build`
76
146
  { label: "dist-npm (compiled js)", value: "dist-npm" },
77
147
  { label: "dist-jsr (typescript)", value: "dist-jsr" },
78
148
  { label: "dist-libs/npm (compiled js)", value: "dist-libs/npm" },
package/bin/app/cmds.d.ts CHANGED
@@ -1,21 +1,16 @@
1
1
  import type { Command } from "@reliverse/rempts";
2
- export declare const getCmdAgg: () => Promise<Command>;
3
- export declare function getCmdBuild(): Promise<Command>;
4
- export declare function getCmdCheck(): Promise<Command>;
5
- export declare function getCmdConv(): Promise<Command>;
6
- export declare function getCmdDeps(): Promise<Command>;
7
- export declare function getCmdInject(): Promise<Command>;
8
- export declare function getCmdInjectExpect(): Promise<Command>;
9
- export declare function getCmdLibs(): Promise<Command>;
10
- export declare function getCmdMerge(): Promise<Command>;
11
- export declare function getCmdMigrate(): Promise<Command>;
12
- export declare function getCmdPub(): Promise<Command>;
13
- export declare function getCmdRelifso(): Promise<Command>;
14
- export declare function getCmdRelifsoInit(): Promise<Command>;
15
- export declare function getCmdRelifsoRename(): Promise<Command>;
16
- export declare function getCmdRelinka(): Promise<Command>;
17
- export declare function getCmdRemptsCmd(): Promise<Command>;
18
- export declare function getCmdRemptsCmdsTs(): Promise<Command>;
19
- export declare function getCmdRemptsMigrate(): Promise<Command>;
20
- export declare function getCmdSpell(): Promise<Command>;
21
- export declare function getCmdSplit(): Promise<Command>;
2
+ export declare const getAggCmd: () => Promise<Command>;
3
+ export declare const getBuildCmd: () => Promise<Command>;
4
+ export declare const getCheckCmd: () => Promise<Command>;
5
+ export declare const getConvCmd: () => Promise<Command>;
6
+ export declare const getCopyCmd: () => Promise<Command>;
7
+ export declare const getInitCmd: () => Promise<Command>;
8
+ export declare const getInjectCmd: () => Promise<Command>;
9
+ export declare const getLibsCmd: () => Promise<Command>;
10
+ export declare const getMergeCmd: () => Promise<Command>;
11
+ export declare const getMigrateCmd: () => Promise<Command>;
12
+ export declare const getPubCmd: () => Promise<Command>;
13
+ export declare const getRemptsCmd: () => Promise<Command>;
14
+ export declare const getRenameCmd: () => Promise<Command>;
15
+ export declare const getSpellCmd: () => Promise<Command>;
16
+ export declare const getSplitCmd: () => Promise<Command>;
package/bin/app/cmds.js CHANGED
@@ -1,76 +1,16 @@
1
- import { relinka } from "@reliverse/relinka";
2
- import { createJiti } from "jiti";
3
- const jiti = createJiti(import.meta.url, {
4
- debug: process.env.NODE_ENV === "development",
5
- fsCache: true,
6
- sourceMaps: true
7
- });
8
- async function loadCommand(path) {
9
- try {
10
- relinka("verbose", `Loading command from: ${path}`);
11
- const cmd = await jiti.import(path, { default: true });
12
- relinka("verbose", `Successfully loaded command from: ${path}`);
13
- return cmd;
14
- } catch (error) {
15
- relinka("error", `Failed to load command from ${path}:`, error);
16
- throw error;
17
- }
18
- }
19
- export const getCmdAgg = async () => loadCommand("./agg/cmd");
20
- export async function getCmdBuild() {
21
- return loadCommand("./build/cmd");
22
- }
23
- export async function getCmdCheck() {
24
- return loadCommand("./check/cmd");
25
- }
26
- export async function getCmdConv() {
27
- return loadCommand("./conv/cmd");
28
- }
29
- export async function getCmdDeps() {
30
- return loadCommand("./deps/cmd");
31
- }
32
- export async function getCmdInject() {
33
- return loadCommand("./inject/cmd");
34
- }
35
- export async function getCmdInjectExpect() {
36
- return loadCommand("./inject/expect/cmd");
37
- }
38
- export async function getCmdLibs() {
39
- return loadCommand("./libs/cmd");
40
- }
41
- export async function getCmdMerge() {
42
- return loadCommand("./merge/cmd");
43
- }
44
- export async function getCmdMigrate() {
45
- return loadCommand("./migrate/cmd");
46
- }
47
- export async function getCmdPub() {
48
- return loadCommand("./pub/cmd");
49
- }
50
- export async function getCmdRelifso() {
51
- return loadCommand("./relifso/cmd");
52
- }
53
- export async function getCmdRelifsoInit() {
54
- return loadCommand("./relifso/init/cmd");
55
- }
56
- export async function getCmdRelifsoRename() {
57
- return loadCommand("./relifso/rename/cmd");
58
- }
59
- export async function getCmdRelinka() {
60
- return loadCommand("./relinka/cmd");
61
- }
62
- export async function getCmdRemptsCmd() {
63
- return loadCommand("./rempts/cmd/cmd");
64
- }
65
- export async function getCmdRemptsCmdsTs() {
66
- return loadCommand("./rempts/cmdsTs/cmd");
67
- }
68
- export async function getCmdRemptsMigrate() {
69
- return loadCommand("./rempts/migrate/cmd");
70
- }
71
- export async function getCmdSpell() {
72
- return loadCommand("./spell/cmd");
73
- }
74
- export async function getCmdSplit() {
75
- return loadCommand("./split/cmd");
76
- }
1
+ import { loadCommand } from "@reliverse/rempts";
2
+ export const getAggCmd = async () => loadCommand("agg");
3
+ export const getBuildCmd = async () => loadCommand("build");
4
+ export const getCheckCmd = async () => loadCommand("check");
5
+ export const getConvCmd = async () => loadCommand("conv");
6
+ export const getCopyCmd = async () => loadCommand("copy");
7
+ export const getInitCmd = async () => loadCommand("init");
8
+ export const getInjectCmd = async () => loadCommand("inject");
9
+ export const getLibsCmd = async () => loadCommand("libs");
10
+ export const getMergeCmd = async () => loadCommand("merge");
11
+ export const getMigrateCmd = async () => loadCommand("migrate");
12
+ export const getPubCmd = async () => loadCommand("pub");
13
+ export const getRemptsCmd = async () => loadCommand("rempts");
14
+ export const getRenameCmd = async () => loadCommand("rename");
15
+ export const getSpellCmd = async () => loadCommand("spell");
16
+ export const getSplitCmd = async () => loadCommand("split");
@@ -1,9 +1,9 @@
1
1
  declare const _default: import("@reliverse/rempts").Command<{
2
- source: {
2
+ s: {
3
3
  type: "string";
4
4
  description: string;
5
5
  };
6
- destination: {
6
+ d: {
7
7
  type: "string";
8
8
  description: string;
9
9
  };
@@ -12,15 +12,20 @@ declare const _default: import("@reliverse/rempts").Command<{
12
12
  description: string;
13
13
  default: true;
14
14
  };
15
- force: {
15
+ preserveStructure: {
16
16
  type: "boolean";
17
17
  description: string;
18
- default: false;
18
+ default: true;
19
19
  };
20
- preserveStructure: {
20
+ increment: {
21
21
  type: "boolean";
22
22
  description: string;
23
23
  default: true;
24
24
  };
25
+ concurrency: {
26
+ type: "number";
27
+ description: string;
28
+ default: number;
29
+ };
25
30
  }>;
26
31
  export default _default;