@reliverse/dler 1.6.2 → 1.6.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.
package/bin/app/check/cmd.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { relinka } from "@reliverse/relinka";
|
|
2
|
+
import {
|
|
3
|
+
defineCommand,
|
|
4
|
+
defineArgs,
|
|
5
|
+
selectPrompt,
|
|
6
|
+
multiselectPrompt
|
|
7
|
+
} from "@reliverse/rempts";
|
|
2
8
|
export default defineCommand({
|
|
3
9
|
meta: {
|
|
4
10
|
name: "check",
|
|
@@ -13,7 +19,26 @@ export default defineCommand({
|
|
|
13
19
|
}
|
|
14
20
|
}),
|
|
15
21
|
async run({ args }) {
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
relinka(
|
|
23
|
+
"info",
|
|
24
|
+
"This command allows you to check your codebase source and dists for any issues."
|
|
25
|
+
);
|
|
26
|
+
const dir = await selectPrompt({
|
|
27
|
+
title: "Select a directory to check",
|
|
28
|
+
options: [
|
|
29
|
+
{ label: "all", value: "all" },
|
|
30
|
+
{ label: "src", value: "src" },
|
|
31
|
+
{ label: "dist-npm", value: "dist-npm" },
|
|
32
|
+
{ label: "dist-jsr", value: "dist-jsr" },
|
|
33
|
+
{ label: "dist-libs-npm", value: "dist-libs-npm" },
|
|
34
|
+
{ label: "dist-libs-jsr", value: "dist-libs-jsr" }
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
const checks = await multiselectPrompt({
|
|
38
|
+
title: "Select checks to run",
|
|
39
|
+
options: [
|
|
40
|
+
{ label: "path-extensions", value: "path-extensions" }
|
|
41
|
+
]
|
|
42
|
+
});
|
|
18
43
|
}
|
|
19
44
|
});
|
package/bin/init/info.js
CHANGED
|
@@ -608,6 +608,11 @@ async function library_performCommonBuildSteps(params) {
|
|
|
608
608
|
"info",
|
|
609
609
|
`[${libName}] Performing paths ext conversion in ${outDirBin} (from js to ts)`
|
|
610
610
|
);
|
|
611
|
+
await convertImportsExt({
|
|
612
|
+
targetDir: outDirBin,
|
|
613
|
+
extFrom: "js",
|
|
614
|
+
extTo: "ts"
|
|
615
|
+
});
|
|
611
616
|
await convertImportsExt({
|
|
612
617
|
targetDir: outDirBin,
|
|
613
618
|
extFrom: "none",
|
|
@@ -385,6 +385,11 @@ async function regular_performCommonBuildSteps({
|
|
|
385
385
|
"info",
|
|
386
386
|
`[dist-jsr] Performing paths ext conversion in ${outDirBin} (from js to ts)`
|
|
387
387
|
);
|
|
388
|
+
await convertImportsExt({
|
|
389
|
+
targetDir: outDirBin,
|
|
390
|
+
extFrom: "js",
|
|
391
|
+
extTo: "ts"
|
|
392
|
+
});
|
|
388
393
|
await convertImportsExt({
|
|
389
394
|
targetDir: outDirBin,
|
|
390
395
|
extFrom: "none",
|