@reliverse/dler 1.7.70 → 1.7.72
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/build/postbuild.js +7 -3
- package/bin/app/get/cmd.d.ts +1 -1
- package/bin/app/get/cmd.js +1 -1
- package/bin/app/upgrade/cmd.js +4 -3
- package/bin/libs/sdk/sdk-impl/config/info.js +1 -1
- package/package.json +1 -1
- /package/bin/libs/get/{mod.d.ts → get-mod.d.ts} +0 -0
- /package/bin/libs/get/{mod.js → get-mod.js} +0 -0
|
@@ -37,7 +37,11 @@ export async function dlerPostBuild(isDev, debugDontCopyNonBuildFiles) {
|
|
|
37
37
|
const distJsrPath = path.join(PROJECT_ROOT, config.distJsrDirName);
|
|
38
38
|
const distJsrBinPath = path.join(distJsrPath, "bin");
|
|
39
39
|
if (await directoryExists(distJsrPath) && await directoryExists(distJsrBinPath)) {
|
|
40
|
-
await compareFileStructures(
|
|
40
|
+
await compareFileStructures(
|
|
41
|
+
path.join(PROJECT_ROOT, config.coreEntrySrcDir),
|
|
42
|
+
distJsrPath,
|
|
43
|
+
isDev
|
|
44
|
+
);
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
export async function wrapper_CopyNonBuildFiles(config) {
|
|
@@ -115,7 +119,7 @@ async function copyNonBuildFiles(srcDir, distDir, preExtensions, templatesDir) {
|
|
|
115
119
|
throw error;
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
|
-
async function compareFileStructures(srcDir, distDir) {
|
|
122
|
+
async function compareFileStructures(srcDir, distDir, isDev) {
|
|
119
123
|
try {
|
|
120
124
|
const srcFiles = await glob("**/*", {
|
|
121
125
|
cwd: srcDir,
|
|
@@ -138,7 +142,7 @@ async function compareFileStructures(srcDir, distDir) {
|
|
|
138
142
|
const distSet = new Set(filteredDistFiles);
|
|
139
143
|
const onlyInSrc = [...srcSet].filter((x) => !distSet.has(x));
|
|
140
144
|
const onlyInDist = [...distSet].filter((x) => !srcSet.has(x));
|
|
141
|
-
if (onlyInSrc.length > 0 || onlyInDist.length > 0) {
|
|
145
|
+
if ((onlyInSrc.length > 0 || onlyInDist.length > 0) && isDev) {
|
|
142
146
|
relinka("warn", "File structure differences detected between src and dist-jsr/bin:");
|
|
143
147
|
if (onlyInSrc.length > 0) {
|
|
144
148
|
relinka("warn", "Files only in src:");
|
package/bin/app/get/cmd.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "../../libs/get/mod.js";
|
|
1
|
+
export { default } from "../../libs/get/get-mod.js";
|
package/bin/app/get/cmd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "../../libs/get/mod.js";
|
|
1
|
+
export { default } from "../../libs/get/get-mod.js";
|
package/bin/app/upgrade/cmd.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { re } from "@reliverse/relico";
|
|
1
2
|
import { relinka } from "@reliverse/relinka";
|
|
2
3
|
import { defineArgs, defineCommand, multiselectPrompt } from "@reliverse/rempts";
|
|
3
4
|
import { lookpath } from "lookpath";
|
|
@@ -45,7 +46,7 @@ export default defineCommand({
|
|
|
45
46
|
title: "Select tools to upgrade",
|
|
46
47
|
displayInstructions: true,
|
|
47
48
|
options: [
|
|
48
|
-
{ label: "Exit", value: "exit"
|
|
49
|
+
{ label: "Exit", value: "exit" },
|
|
49
50
|
...availableTools.map(({ name, result }) => {
|
|
50
51
|
const isUpToDate = result && result.status === "up-to-date";
|
|
51
52
|
const hasErrors = result && result.status === "error";
|
|
@@ -59,9 +60,9 @@ export default defineCommand({
|
|
|
59
60
|
label += " (can be upgraded)";
|
|
60
61
|
}
|
|
61
62
|
return {
|
|
62
|
-
label,
|
|
63
|
+
label: isUpToDate || hasErrors ? re.gray(label) : label,
|
|
63
64
|
value: name,
|
|
64
|
-
disabled: isUpToDate,
|
|
65
|
+
disabled: isUpToDate || hasErrors,
|
|
65
66
|
hint: hasErrors ? result.message : void 0
|
|
66
67
|
};
|
|
67
68
|
})
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|