@reliverse/dler 1.7.30 → 1.7.32

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.
@@ -52,7 +52,11 @@ async function copyNonBuildFiles(srcDir, distDir, preExtensions, templatesDir) {
52
52
  const isInTemplatesDir = file.startsWith(templatesDir);
53
53
  if (isInTemplatesDir || !preExtensions.includes(ext)) {
54
54
  const srcPath = path.join(srcDir, file);
55
- const destPath = path.join(distDir, file);
55
+ let destPath = path.join(distDir, file);
56
+ if (!isInTemplatesDir && !preExtensions.includes(ext) || isInTemplatesDir) {
57
+ const binDir = path.join(distDir, "bin");
58
+ destPath = path.join(binDir, file);
59
+ }
56
60
  await fs.ensureDir(path.dirname(destPath));
57
61
  await fs.copy(srcPath, destPath);
58
62
  }
@@ -65,6 +69,46 @@ async function copyNonBuildFiles(srcDir, distDir, preExtensions, templatesDir) {
65
69
  throw error;
66
70
  }
67
71
  }
72
+ async function compareFileStructures(srcDir, distDir) {
73
+ try {
74
+ const srcFiles = await glob("**/*", {
75
+ cwd: srcDir,
76
+ onlyFiles: true,
77
+ dot: true
78
+ });
79
+ const distBinDir = path.join(distDir, "bin");
80
+ const distFiles = await glob("**/*", {
81
+ cwd: distBinDir,
82
+ onlyFiles: true,
83
+ dot: true
84
+ });
85
+ const srcSet = new Set(srcFiles);
86
+ const distSet = new Set(distFiles);
87
+ const onlyInSrc = [...srcSet].filter((x) => !distSet.has(x));
88
+ const onlyInDist = [...distSet].filter((x) => !srcSet.has(x));
89
+ if (onlyInSrc.length > 0 || onlyInDist.length > 0) {
90
+ relinka("warn", "File structure differences detected between src and dist-jsr/bin:");
91
+ if (onlyInSrc.length > 0) {
92
+ relinka("warn", "Files only in src:");
93
+ for (const file of onlyInSrc) {
94
+ relinka("warn", ` - ${file}`);
95
+ }
96
+ }
97
+ if (onlyInDist.length > 0) {
98
+ relinka("warn", "Files only in dist-jsr/bin:");
99
+ for (const file of onlyInDist) {
100
+ relinka("warn", ` - ${file}`);
101
+ }
102
+ }
103
+ }
104
+ } catch (error) {
105
+ relinka(
106
+ "error",
107
+ `Error comparing file structures: ${error instanceof Error ? error.message : String(error)}`
108
+ );
109
+ throw error;
110
+ }
111
+ }
68
112
  export async function dlerPostBuild(isDev, debugDontCopyNonBuildFiles) {
69
113
  relinka("info", "\u2014 \u2014 \u2014 dlerPostBuild \u2014 \u2014 \u2014");
70
114
  const config = await getConfigDler();
@@ -85,6 +129,10 @@ export async function dlerPostBuild(isDev, debugDontCopyNonBuildFiles) {
85
129
  await run();
86
130
  }
87
131
  }
132
+ const distJsrPath = path.join(PROJECT_ROOT, config.distJsrDirName);
133
+ if (await directoryExists(distJsrPath)) {
134
+ await compareFileStructures(path.join(PROJECT_ROOT, config.coreEntrySrcDir), distJsrPath);
135
+ }
88
136
  }
89
137
  export async function wrapper_CopyNonBuildFiles(config) {
90
138
  if (config.commonPubRegistry === "npm" || config.commonPubRegistry === "npm-jsr") {
@@ -1,10 +1,10 @@
1
1
  import type { RseConfig } from "./rse-types";
2
2
  export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
3
- version?: string | undefined;
4
3
  $schema?: "./schema.json" | "https://reliverse.org/schema.json" | undefined;
5
4
  projectName?: string | undefined;
6
5
  projectAuthor?: string | undefined;
7
6
  projectDescription?: string | undefined;
7
+ version?: string | undefined;
8
8
  projectLicense?: string | undefined;
9
9
  projectRepository?: string | undefined;
10
10
  projectDomain?: string | undefined;
@@ -12,9 +12,9 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
12
12
  projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
13
13
  projectPackageManager?: "npm" | "bun" | "yarn" | "pnpm" | undefined;
14
14
  projectState?: "created" | "creating" | undefined;
15
- projectCategory?: "cli" | "unknown" | "website" | "vscode" | "browser" | "library" | "mobile" | undefined;
15
+ projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
16
16
  projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
17
- projectFramework?: "rempts" | "vue" | "npm-jsr" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
17
+ projectFramework?: "rempts" | "npm-jsr" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "vue" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
18
18
  projectTemplate?: "unknown" | "blefnk/relivator-nextjs-template" | "blefnk/relivator-docker-template" | "blefnk/next-react-ts-src-minimal" | "blefnk/all-in-one-nextjs-template" | "blefnk/create-t3-app" | "blefnk/create-next-app" | "blefnk/astro-starlight-template" | "blefnk/versator-nextjs-template" | "blefnk/relivator-lynxjs-template" | "blefnk/relivator-react-native-template" | "reliverse/template-browser-extension" | "microsoft/vscode-extension-samples" | "microsoft/vscode-extension-template" | "rsetarter-template" | "blefnk/deno-cli-tutorial" | undefined;
19
19
  projectTemplateDate?: string | undefined;
20
20
  features?: {
@@ -41,7 +41,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
41
41
  testing?: "bun" | "unknown" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
42
42
  stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
43
43
  formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
44
- styling?: "sass" | "unknown" | "tailwind" | "styled-components" | "css-modules" | undefined;
44
+ styling?: "unknown" | "tailwind" | "styled-components" | "css-modules" | "sass" | undefined;
45
45
  uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
46
46
  databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
47
47
  databaseProvider?: "unknown" | "pg" | "mysql" | "sqlite" | "mongodb" | undefined;
@@ -83,7 +83,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
83
83
  dontRemoveComments?: boolean | undefined;
84
84
  shouldAddComments?: boolean | undefined;
85
85
  typeOrInterface?: "type" | "interface" | "mixed" | undefined;
86
- importOrRequire?: "mixed" | "import" | "require" | undefined;
86
+ importOrRequire?: "import" | "mixed" | "require" | undefined;
87
87
  cjsToEsm?: boolean | undefined;
88
88
  modernize?: {
89
89
  replaceFs?: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.30";
2
+ const version = "1.7.32";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
@@ -72,6 +72,7 @@ async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, dis
72
72
  `Successfully ${distJsrDryRun ? "validated" : "published"} lib ${libName} to JSR registry`
73
73
  );
74
74
  });
75
+ await new Promise((resolve) => setTimeout(resolve, 2e3));
75
76
  if (timer) resumePerfTimer(timer);
76
77
  } catch (error) {
77
78
  if (timer) resumePerfTimer(timer);
@@ -23,6 +23,7 @@ export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, _isDev,
23
23
  relinka("null", "");
24
24
  relinka("log", `Successfully ${distJsrDryRun ? "validated" : "published"} to JSR registry`);
25
25
  });
26
+ await new Promise((resolve) => setTimeout(resolve, 2e3));
26
27
  if (timer) resumePerfTimer(timer);
27
28
  }
28
29
  } catch (error) {
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  "license": "MIT",
54
54
  "name": "@reliverse/dler",
55
55
  "type": "module",
56
- "version": "1.7.30",
56
+ "version": "1.7.32",
57
57
  "keywords": [
58
58
  "reliverse",
59
59
  "cli",