@reliverse/dler 1.6.6 → 1.7.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.
- package/README.md +92 -10
- package/bin/app/build/cmd.js +1 -1
- package/bin/app/build/impl.js +1 -1
- package/bin/app/check/cmd.d.ts +0 -3
- package/bin/app/check/cmd.js +68 -351
- package/bin/app/cmds.d.ts +21 -437
- package/bin/app/cmds.js +38 -22
- package/bin/app/deps/cmd.js +2 -2
- package/bin/app/migrate/cmd.d.ts +12 -2
- package/bin/app/migrate/cmd.js +105 -58
- package/bin/app/migrate/codemods/anything-to-bun.d.ts +5 -0
- package/bin/app/migrate/codemods/anything-to-bun.js +597 -0
- package/bin/app/migrate/codemods/fs-to-relifso.d.ts +8 -0
- package/bin/app/migrate/codemods/fs-to-relifso.js +179 -0
- package/bin/app/migrate/codemods/path-to-pathkit.d.ts +8 -0
- package/bin/app/migrate/codemods/{lib-pathe-pathkit.js → path-to-pathkit.js} +22 -111
- package/bin/app/pub/cmd.js +1 -1
- package/bin/app/rempts/cmd/cmd.js +10 -3
- package/bin/cli.js +14 -4
- package/bin/libs/sdk/sdk-impl/build/build-library.js +23 -19
- package/bin/libs/sdk/sdk-impl/build/build-regular.js +13 -13
- package/bin/libs/sdk/sdk-impl/check/check-consts.d.ts +29 -0
- package/bin/libs/sdk/sdk-impl/check/check-consts.js +48 -0
- package/bin/libs/sdk/sdk-impl/check/check-mod.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/check/check-mod.js +87 -0
- package/bin/libs/sdk/sdk-impl/check/check-utils.d.ts +5 -0
- package/bin/libs/sdk/sdk-impl/check/check-utils.js +56 -0
- package/bin/libs/sdk/sdk-impl/check/rules/dler-config-health.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/check/rules/dler-config-health.js +37 -0
- package/bin/libs/sdk/sdk-impl/check/rules/file-extensions.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/check/rules/file-extensions.js +69 -0
- package/bin/{app/deps/impl/wrapper.d.ts → libs/sdk/sdk-impl/check/rules/missing-deps.d.ts} +1 -1
- package/bin/{app/deps/impl/wrapper.js → libs/sdk/sdk-impl/check/rules/missing-deps.js} +2 -2
- package/bin/libs/sdk/sdk-impl/check/rules/package-json-health.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/check/rules/package-json-health.js +67 -0
- package/bin/libs/sdk/sdk-impl/check/rules/path-extensions.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/check/rules/path-extensions.js +93 -0
- package/bin/libs/sdk/sdk-impl/check/rules/self-include.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/check/rules/self-include.js +98 -0
- package/bin/libs/sdk/sdk-impl/check/rules/tsconfig-health.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/check/rules/tsconfig-health.js +35 -0
- package/bin/libs/sdk/{default.d.ts → sdk-impl/config/default.d.ts} +1 -1
- package/bin/libs/sdk/{default.js → sdk-impl/config/default.js} +15 -5
- package/bin/libs/sdk/sdk-impl/config/define.d.ts +2 -0
- package/bin/libs/sdk/sdk-impl/config/define.js +4 -0
- package/bin/{init → libs/sdk/sdk-impl/config}/info.js +1 -1
- package/bin/{init → libs/sdk/sdk-impl/config}/init.js +8 -8
- package/bin/{init → libs/sdk/sdk-impl/config}/load.d.ts +2 -1
- package/bin/{init → libs/sdk/sdk-impl/config}/load.js +15 -6
- package/bin/libs/sdk/sdk-impl/library-flow.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/library-flow.js +3 -3
- package/bin/libs/sdk/sdk-impl/spell/spell-executors.js +1 -1
- package/bin/libs/sdk/sdk-impl/spell/spell-filesystem.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/spell/spell-filesystem.js +7 -1
- package/bin/libs/sdk/sdk-impl/utils/utils-build.d.ts +8 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-build.js +5 -5
- package/bin/libs/sdk/sdk-impl/utils/utils-deps.js +36 -10
- package/bin/libs/sdk/sdk-impl/utils/utils-fs.js +20 -8
- package/bin/libs/sdk/sdk-impl/utils/utils-jsr-json.d.ts +2 -1
- package/bin/libs/sdk/sdk-impl/utils/utils-jsr-json.js +15 -4
- package/bin/libs/sdk/sdk-impl/utils/utils-pkg-json-libs.d.ts +5 -0
- package/bin/libs/sdk/sdk-impl/utils/utils-pkg-json-libs.js +98 -29
- package/bin/libs/sdk/sdk-impl/utils/utils-pkg-json-reg.js +12 -5
- package/bin/libs/sdk/sdk-types.d.ts +67 -33
- package/bin/mod.d.ts +1 -2
- package/bin/mod.js +1 -4
- package/package.json +1 -1
- package/bin/app/migrate/codemods/lib-pathe-pathkit.d.ts +0 -9
- /package/bin/app/migrate/codemods/{ts-module-resolution.d.ts → module-resolution.d.ts} +0 -0
- /package/bin/app/migrate/codemods/{ts-module-resolution.js → module-resolution.js} +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/analyzer.d.ts +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/analyzer.js +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/deps-types.d.ts +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/deps-types.js +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/filesystem.d.ts +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/filesystem.js +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/formatter.d.ts +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/formatter.js +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/parser.d.ts +0 -0
- /package/bin/{app/deps/impl → libs/sdk/sdk-impl/check/rules/deps}/parser.js +0 -0
- /package/bin/{init → libs/sdk/sdk-impl/config}/info.d.ts +0 -0
- /package/bin/{init → libs/sdk/sdk-impl/config}/init.d.ts +0 -0
package/bin/app/cmds.d.ts
CHANGED
|
@@ -1,437 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type: "string";
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
recursive: {
|
|
26
|
-
description: string;
|
|
27
|
-
type: "boolean";
|
|
28
|
-
default: true;
|
|
29
|
-
};
|
|
30
|
-
strip: {
|
|
31
|
-
description: string;
|
|
32
|
-
type: "string";
|
|
33
|
-
};
|
|
34
|
-
sort: {
|
|
35
|
-
description: string;
|
|
36
|
-
type: "boolean";
|
|
37
|
-
};
|
|
38
|
-
header: {
|
|
39
|
-
description: string;
|
|
40
|
-
type: "string";
|
|
41
|
-
};
|
|
42
|
-
verbose: {
|
|
43
|
-
description: string;
|
|
44
|
-
type: "boolean";
|
|
45
|
-
};
|
|
46
|
-
includeInternal: {
|
|
47
|
-
description: string;
|
|
48
|
-
type: "boolean";
|
|
49
|
-
};
|
|
50
|
-
internalMarker: {
|
|
51
|
-
description: string;
|
|
52
|
-
type: "string";
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
|
-
override: {
|
|
56
|
-
description: string;
|
|
57
|
-
type: "boolean";
|
|
58
|
-
};
|
|
59
|
-
extensions: {
|
|
60
|
-
description: string;
|
|
61
|
-
type: "string";
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
separateTypesFile: {
|
|
65
|
-
description: string;
|
|
66
|
-
type: "boolean";
|
|
67
|
-
};
|
|
68
|
-
typesOut: {
|
|
69
|
-
description: string;
|
|
70
|
-
type: "string";
|
|
71
|
-
};
|
|
72
|
-
}>>;
|
|
73
|
-
export declare function getCmdBuild(): Promise<import("@reliverse/rempts").Command<{
|
|
74
|
-
dev: {
|
|
75
|
-
type: "boolean";
|
|
76
|
-
description: string;
|
|
77
|
-
};
|
|
78
|
-
}>>;
|
|
79
|
-
export declare function getCmdCheck(): Promise<import("@reliverse/rempts").Command<{
|
|
80
|
-
directory: {
|
|
81
|
-
type: "string";
|
|
82
|
-
description: string;
|
|
83
|
-
};
|
|
84
|
-
checks: {
|
|
85
|
-
type: "string";
|
|
86
|
-
description: string;
|
|
87
|
-
};
|
|
88
|
-
strict: {
|
|
89
|
-
type: "boolean";
|
|
90
|
-
description: string;
|
|
91
|
-
};
|
|
92
|
-
json: {
|
|
93
|
-
type: "boolean";
|
|
94
|
-
description: string;
|
|
95
|
-
};
|
|
96
|
-
}>>;
|
|
97
|
-
export declare function getCmdConv(): Promise<import("@reliverse/rempts").Command<{
|
|
98
|
-
type: {
|
|
99
|
-
type: "string";
|
|
100
|
-
required: true;
|
|
101
|
-
description: string;
|
|
102
|
-
};
|
|
103
|
-
input: {
|
|
104
|
-
type: "string";
|
|
105
|
-
required: true;
|
|
106
|
-
description: string;
|
|
107
|
-
};
|
|
108
|
-
output: {
|
|
109
|
-
type: "string";
|
|
110
|
-
description: string;
|
|
111
|
-
};
|
|
112
|
-
pattern: {
|
|
113
|
-
type: "string";
|
|
114
|
-
description: string;
|
|
115
|
-
};
|
|
116
|
-
replacement: {
|
|
117
|
-
type: "string";
|
|
118
|
-
description: string;
|
|
119
|
-
};
|
|
120
|
-
line: {
|
|
121
|
-
type: "number";
|
|
122
|
-
description: string;
|
|
123
|
-
};
|
|
124
|
-
transform: {
|
|
125
|
-
type: "string";
|
|
126
|
-
description: string;
|
|
127
|
-
};
|
|
128
|
-
}>>;
|
|
129
|
-
export declare function getCmdDeps(): Promise<import("@reliverse/rempts").Command<{
|
|
130
|
-
directory: {
|
|
131
|
-
type: "string";
|
|
132
|
-
description: string;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
135
|
-
all: {
|
|
136
|
-
type: "boolean";
|
|
137
|
-
description: string;
|
|
138
|
-
};
|
|
139
|
-
ignore: {
|
|
140
|
-
type: "string";
|
|
141
|
-
description: string;
|
|
142
|
-
};
|
|
143
|
-
json: {
|
|
144
|
-
type: "boolean";
|
|
145
|
-
description: string;
|
|
146
|
-
};
|
|
147
|
-
builtins: {
|
|
148
|
-
type: "boolean";
|
|
149
|
-
description: string;
|
|
150
|
-
};
|
|
151
|
-
dev: {
|
|
152
|
-
type: "boolean";
|
|
153
|
-
description: string;
|
|
154
|
-
};
|
|
155
|
-
peer: {
|
|
156
|
-
type: "boolean";
|
|
157
|
-
description: string;
|
|
158
|
-
};
|
|
159
|
-
optional: {
|
|
160
|
-
type: "boolean";
|
|
161
|
-
description: string;
|
|
162
|
-
};
|
|
163
|
-
fix: {
|
|
164
|
-
type: "boolean";
|
|
165
|
-
description: string;
|
|
166
|
-
};
|
|
167
|
-
depth: {
|
|
168
|
-
type: "number";
|
|
169
|
-
description: string;
|
|
170
|
-
default: number;
|
|
171
|
-
};
|
|
172
|
-
}>>;
|
|
173
|
-
export declare function getCmdInject(): Promise<import("@reliverse/rempts").Command<{
|
|
174
|
-
dev: {
|
|
175
|
-
type: "boolean";
|
|
176
|
-
description: string;
|
|
177
|
-
};
|
|
178
|
-
cwd: {
|
|
179
|
-
type: "string";
|
|
180
|
-
description: string;
|
|
181
|
-
};
|
|
182
|
-
}>>;
|
|
183
|
-
export declare function getCmdInjectExpect(): Promise<import("@reliverse/rempts").Command<{
|
|
184
|
-
dev: {
|
|
185
|
-
type: "boolean";
|
|
186
|
-
description: string;
|
|
187
|
-
};
|
|
188
|
-
files: {
|
|
189
|
-
type: "positional";
|
|
190
|
-
description: string;
|
|
191
|
-
default: string;
|
|
192
|
-
};
|
|
193
|
-
comment: {
|
|
194
|
-
type: "string";
|
|
195
|
-
description: string;
|
|
196
|
-
};
|
|
197
|
-
tscPaths: {
|
|
198
|
-
type: "string";
|
|
199
|
-
description: string;
|
|
200
|
-
};
|
|
201
|
-
}>>;
|
|
202
|
-
export declare function getCmdLibs(): Promise<import("@reliverse/rempts").Command<{
|
|
203
|
-
init: {
|
|
204
|
-
type: "string";
|
|
205
|
-
required: true;
|
|
206
|
-
description: string;
|
|
207
|
-
};
|
|
208
|
-
overwrite: {
|
|
209
|
-
type: "boolean";
|
|
210
|
-
description: string;
|
|
211
|
-
};
|
|
212
|
-
}>>;
|
|
213
|
-
export declare function getCmdMerge(): Promise<import("@reliverse/rempts").Command<{
|
|
214
|
-
in: {
|
|
215
|
-
type: "array";
|
|
216
|
-
description: string;
|
|
217
|
-
};
|
|
218
|
-
ignore: {
|
|
219
|
-
type: "array";
|
|
220
|
-
description: string;
|
|
221
|
-
};
|
|
222
|
-
out: {
|
|
223
|
-
type: "string";
|
|
224
|
-
description: string;
|
|
225
|
-
};
|
|
226
|
-
format: {
|
|
227
|
-
type: "string";
|
|
228
|
-
default: string;
|
|
229
|
-
description: string;
|
|
230
|
-
};
|
|
231
|
-
stdout: {
|
|
232
|
-
type: "boolean";
|
|
233
|
-
description: string;
|
|
234
|
-
};
|
|
235
|
-
noPath: {
|
|
236
|
-
type: "boolean";
|
|
237
|
-
description: string;
|
|
238
|
-
};
|
|
239
|
-
separator: {
|
|
240
|
-
type: "string";
|
|
241
|
-
description: string;
|
|
242
|
-
};
|
|
243
|
-
comment: {
|
|
244
|
-
type: "string";
|
|
245
|
-
description: string;
|
|
246
|
-
};
|
|
247
|
-
forceComment: {
|
|
248
|
-
type: "boolean";
|
|
249
|
-
description: string;
|
|
250
|
-
};
|
|
251
|
-
batch: {
|
|
252
|
-
type: "boolean";
|
|
253
|
-
description: string;
|
|
254
|
-
};
|
|
255
|
-
}>>;
|
|
256
|
-
export declare function getCmdMigrate(): Promise<import("@reliverse/rempts").Command<{
|
|
257
|
-
lib: {
|
|
258
|
-
type: "string";
|
|
259
|
-
description: string;
|
|
260
|
-
};
|
|
261
|
-
target: {
|
|
262
|
-
type: "string";
|
|
263
|
-
description: string;
|
|
264
|
-
default: string;
|
|
265
|
-
};
|
|
266
|
-
dryRun: {
|
|
267
|
-
type: "boolean";
|
|
268
|
-
description: string;
|
|
269
|
-
};
|
|
270
|
-
}>>;
|
|
271
|
-
export declare function getCmdPub(): Promise<import("@reliverse/rempts").Command<{
|
|
272
|
-
dev: {
|
|
273
|
-
type: "boolean";
|
|
274
|
-
description: string;
|
|
275
|
-
};
|
|
276
|
-
}>>;
|
|
277
|
-
export declare function getCmdRelifso(): Promise<import("@reliverse/rempts").Command<{
|
|
278
|
-
dev: {
|
|
279
|
-
type: "boolean";
|
|
280
|
-
description: string;
|
|
281
|
-
};
|
|
282
|
-
cwd: {
|
|
283
|
-
type: "string";
|
|
284
|
-
description: string;
|
|
285
|
-
};
|
|
286
|
-
}>>;
|
|
287
|
-
export declare function getCmdRelifsoInit(): Promise<import("@reliverse/rempts").Command<{
|
|
288
|
-
dev: {
|
|
289
|
-
type: "boolean";
|
|
290
|
-
description: string;
|
|
291
|
-
};
|
|
292
|
-
fileType: {
|
|
293
|
-
type: "string";
|
|
294
|
-
description: string;
|
|
295
|
-
};
|
|
296
|
-
destDir: {
|
|
297
|
-
type: "string";
|
|
298
|
-
description: string;
|
|
299
|
-
default: string;
|
|
300
|
-
};
|
|
301
|
-
multiple: {
|
|
302
|
-
type: "boolean";
|
|
303
|
-
description: string;
|
|
304
|
-
};
|
|
305
|
-
parallel: {
|
|
306
|
-
type: "boolean";
|
|
307
|
-
description: string;
|
|
308
|
-
};
|
|
309
|
-
concurrency: {
|
|
310
|
-
type: "string";
|
|
311
|
-
description: string;
|
|
312
|
-
default: string;
|
|
313
|
-
};
|
|
314
|
-
}>>;
|
|
315
|
-
export declare function getCmdRelifsoRename(): Promise<import("@reliverse/rempts").Command<{
|
|
316
|
-
dev: {
|
|
317
|
-
type: "boolean";
|
|
318
|
-
description: string;
|
|
319
|
-
};
|
|
320
|
-
prepareMyCLI: {
|
|
321
|
-
type: "boolean";
|
|
322
|
-
description: string;
|
|
323
|
-
};
|
|
324
|
-
revert: {
|
|
325
|
-
type: "boolean";
|
|
326
|
-
description: string;
|
|
327
|
-
};
|
|
328
|
-
source: {
|
|
329
|
-
type: "string";
|
|
330
|
-
description: string;
|
|
331
|
-
};
|
|
332
|
-
destination: {
|
|
333
|
-
type: "string";
|
|
334
|
-
description: string;
|
|
335
|
-
};
|
|
336
|
-
recursive: {
|
|
337
|
-
type: "boolean";
|
|
338
|
-
description: string;
|
|
339
|
-
default: true;
|
|
340
|
-
};
|
|
341
|
-
useDtsTxtForPrepareMyCLI: {
|
|
342
|
-
type: "boolean";
|
|
343
|
-
description: string;
|
|
344
|
-
};
|
|
345
|
-
}>>;
|
|
346
|
-
export declare function getCmdRelinka(): Promise<import("@reliverse/rempts").Command<{
|
|
347
|
-
input: {
|
|
348
|
-
type: "string";
|
|
349
|
-
required: true;
|
|
350
|
-
description: string;
|
|
351
|
-
};
|
|
352
|
-
from: {
|
|
353
|
-
type: "string";
|
|
354
|
-
required: true;
|
|
355
|
-
description: string;
|
|
356
|
-
};
|
|
357
|
-
to: {
|
|
358
|
-
type: "string";
|
|
359
|
-
required: true;
|
|
360
|
-
description: string;
|
|
361
|
-
};
|
|
362
|
-
}>>;
|
|
363
|
-
export declare function getCmdRemptsCmd(): Promise<import("@reliverse/rempts").Command<{
|
|
364
|
-
init: {
|
|
365
|
-
type: "string";
|
|
366
|
-
required: true;
|
|
367
|
-
description: string;
|
|
368
|
-
};
|
|
369
|
-
overwrite: {
|
|
370
|
-
type: "boolean";
|
|
371
|
-
description: string;
|
|
372
|
-
};
|
|
373
|
-
customCmdsRoot: {
|
|
374
|
-
type: "string";
|
|
375
|
-
description: string;
|
|
376
|
-
};
|
|
377
|
-
}>>;
|
|
378
|
-
export declare function getCmdRemptsCmdsTs(): Promise<import("@reliverse/rempts").Command<{
|
|
379
|
-
outFile: {
|
|
380
|
-
type: "string";
|
|
381
|
-
description: string;
|
|
382
|
-
default: string;
|
|
383
|
-
};
|
|
384
|
-
cmdDirs: {
|
|
385
|
-
type: "array";
|
|
386
|
-
description: string;
|
|
387
|
-
};
|
|
388
|
-
overwrite: {
|
|
389
|
-
type: "boolean";
|
|
390
|
-
description: string;
|
|
391
|
-
};
|
|
392
|
-
}>>;
|
|
393
|
-
export declare function getCmdRemptsMigrate(): Promise<import("@reliverse/rempts").Command<{
|
|
394
|
-
provider: {
|
|
395
|
-
type: "string";
|
|
396
|
-
description: string;
|
|
397
|
-
required: true;
|
|
398
|
-
allowed: string[];
|
|
399
|
-
};
|
|
400
|
-
input: {
|
|
401
|
-
type: "string";
|
|
402
|
-
description: string;
|
|
403
|
-
required: true;
|
|
404
|
-
};
|
|
405
|
-
}>>;
|
|
406
|
-
export declare function getCmdSpell(): Promise<import("@reliverse/rempts").Command<{
|
|
407
|
-
spells: {
|
|
408
|
-
type: "string";
|
|
409
|
-
description: string;
|
|
410
|
-
default: string;
|
|
411
|
-
};
|
|
412
|
-
files: {
|
|
413
|
-
type: "string";
|
|
414
|
-
description: string;
|
|
415
|
-
};
|
|
416
|
-
dryRun: {
|
|
417
|
-
type: "boolean";
|
|
418
|
-
description: string;
|
|
419
|
-
};
|
|
420
|
-
}>>;
|
|
421
|
-
export declare function getCmdSplit(): Promise<import("@reliverse/rempts").Command<{
|
|
422
|
-
directory: {
|
|
423
|
-
type: "string";
|
|
424
|
-
description: string;
|
|
425
|
-
required: true;
|
|
426
|
-
};
|
|
427
|
-
fileLineThreshold: {
|
|
428
|
-
type: "number";
|
|
429
|
-
description: string;
|
|
430
|
-
required: true;
|
|
431
|
-
};
|
|
432
|
-
funcLineThreshold: {
|
|
433
|
-
type: "number";
|
|
434
|
-
description: string;
|
|
435
|
-
required: true;
|
|
436
|
-
};
|
|
437
|
-
}>>;
|
|
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>;
|
package/bin/app/cmds.js
CHANGED
|
@@ -1,60 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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");
|
|
4
20
|
export async function getCmdBuild() {
|
|
5
|
-
return (
|
|
21
|
+
return loadCommand("./build/cmd");
|
|
6
22
|
}
|
|
7
23
|
export async function getCmdCheck() {
|
|
8
|
-
return (
|
|
24
|
+
return loadCommand("./check/cmd");
|
|
9
25
|
}
|
|
10
26
|
export async function getCmdConv() {
|
|
11
|
-
return (
|
|
27
|
+
return loadCommand("./conv/cmd");
|
|
12
28
|
}
|
|
13
29
|
export async function getCmdDeps() {
|
|
14
|
-
return (
|
|
30
|
+
return loadCommand("./deps/cmd");
|
|
15
31
|
}
|
|
16
32
|
export async function getCmdInject() {
|
|
17
|
-
return (
|
|
33
|
+
return loadCommand("./inject/cmd");
|
|
18
34
|
}
|
|
19
35
|
export async function getCmdInjectExpect() {
|
|
20
|
-
return (
|
|
36
|
+
return loadCommand("./inject/expect/cmd");
|
|
21
37
|
}
|
|
22
38
|
export async function getCmdLibs() {
|
|
23
|
-
return (
|
|
39
|
+
return loadCommand("./libs/cmd");
|
|
24
40
|
}
|
|
25
41
|
export async function getCmdMerge() {
|
|
26
|
-
return (
|
|
42
|
+
return loadCommand("./merge/cmd");
|
|
27
43
|
}
|
|
28
44
|
export async function getCmdMigrate() {
|
|
29
|
-
return (
|
|
45
|
+
return loadCommand("./migrate/cmd");
|
|
30
46
|
}
|
|
31
47
|
export async function getCmdPub() {
|
|
32
|
-
return (
|
|
48
|
+
return loadCommand("./pub/cmd");
|
|
33
49
|
}
|
|
34
50
|
export async function getCmdRelifso() {
|
|
35
|
-
return (
|
|
51
|
+
return loadCommand("./relifso/cmd");
|
|
36
52
|
}
|
|
37
53
|
export async function getCmdRelifsoInit() {
|
|
38
|
-
return (
|
|
54
|
+
return loadCommand("./relifso/init/cmd");
|
|
39
55
|
}
|
|
40
56
|
export async function getCmdRelifsoRename() {
|
|
41
|
-
return (
|
|
57
|
+
return loadCommand("./relifso/rename/cmd");
|
|
42
58
|
}
|
|
43
59
|
export async function getCmdRelinka() {
|
|
44
|
-
return (
|
|
60
|
+
return loadCommand("./relinka/cmd");
|
|
45
61
|
}
|
|
46
62
|
export async function getCmdRemptsCmd() {
|
|
47
|
-
return (
|
|
63
|
+
return loadCommand("./rempts/cmd/cmd");
|
|
48
64
|
}
|
|
49
65
|
export async function getCmdRemptsCmdsTs() {
|
|
50
|
-
return (
|
|
66
|
+
return loadCommand("./rempts/cmdsTs/cmd");
|
|
51
67
|
}
|
|
52
68
|
export async function getCmdRemptsMigrate() {
|
|
53
|
-
return (
|
|
69
|
+
return loadCommand("./rempts/migrate/cmd");
|
|
54
70
|
}
|
|
55
71
|
export async function getCmdSpell() {
|
|
56
|
-
return (
|
|
72
|
+
return loadCommand("./spell/cmd");
|
|
57
73
|
}
|
|
58
74
|
export async function getCmdSplit() {
|
|
59
|
-
return (
|
|
75
|
+
return loadCommand("./split/cmd");
|
|
60
76
|
}
|
package/bin/app/deps/cmd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from "@reliverse/pathkit";
|
|
2
2
|
import { re } from "@reliverse/relico";
|
|
3
3
|
import { defineArgs, defineCommand } from "@reliverse/rempts";
|
|
4
|
-
import { analyzeDependencies } from "
|
|
5
|
-
import { formatOutput } from "
|
|
4
|
+
import { analyzeDependencies } from "../../libs/sdk/sdk-impl/check/rules/deps/analyzer.js";
|
|
5
|
+
import { formatOutput } from "../../libs/sdk/sdk-impl/check/rules/deps/formatter.js";
|
|
6
6
|
export default defineCommand({
|
|
7
7
|
meta: {
|
|
8
8
|
name: "deps",
|
package/bin/app/migrate/cmd.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
declare const _default: import("@reliverse/rempts").Command<{
|
|
2
|
-
|
|
2
|
+
codemod: {
|
|
3
3
|
type: "string";
|
|
4
4
|
description: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
project: {
|
|
7
|
+
type: "string";
|
|
8
|
+
description: string;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
mrTarget: {
|
|
7
12
|
type: "string";
|
|
8
13
|
description: string;
|
|
9
14
|
default: string;
|
|
@@ -12,5 +17,10 @@ declare const _default: import("@reliverse/rempts").Command<{
|
|
|
12
17
|
type: "boolean";
|
|
13
18
|
description: string;
|
|
14
19
|
};
|
|
20
|
+
noBackup: {
|
|
21
|
+
type: "boolean";
|
|
22
|
+
description: string;
|
|
23
|
+
default: false;
|
|
24
|
+
};
|
|
15
25
|
}>;
|
|
16
26
|
export default _default;
|