@reliverse/dler 1.7.70 → 1.7.71

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.
@@ -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(path.join(PROJECT_ROOT, config.coreEntrySrcDir), distJsrPath);
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:");
@@ -1 +1 @@
1
- export { default } from "../../libs/get/mod.js";
1
+ export { default } from "../../libs/get/get-mod.js";
@@ -1 +1 @@
1
- export { default } from "../../libs/get/mod.js";
1
+ export { default } from "../../libs/get/get-mod.js";
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.70";
2
+ const version = "1.7.71";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
package/package.json CHANGED
@@ -52,7 +52,7 @@
52
52
  "license": "MIT",
53
53
  "name": "@reliverse/dler",
54
54
  "type": "module",
55
- "version": "1.7.70",
55
+ "version": "1.7.71",
56
56
  "keywords": [
57
57
  "reliverse",
58
58
  "cli",
File without changes
File without changes