@reliverse/dler 1.7.31 → 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.
@@ -55,8 +55,7 @@ async function copyNonBuildFiles(srcDir, distDir, preExtensions, templatesDir) {
55
55
  let destPath = path.join(distDir, file);
56
56
  if (!isInTemplatesDir && !preExtensions.includes(ext) || isInTemplatesDir) {
57
57
  const binDir = path.join(distDir, "bin");
58
- const relativePath = isInTemplatesDir ? file : path.basename(file);
59
- destPath = path.join(binDir, relativePath);
58
+ destPath = path.join(binDir, file);
60
59
  }
61
60
  await fs.ensureDir(path.dirname(destPath));
62
61
  await fs.copy(srcPath, destPath);
@@ -70,6 +69,46 @@ async function copyNonBuildFiles(srcDir, distDir, preExtensions, templatesDir) {
70
69
  throw error;
71
70
  }
72
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
+ }
73
112
  export async function dlerPostBuild(isDev, debugDontCopyNonBuildFiles) {
74
113
  relinka("info", "\u2014 \u2014 \u2014 dlerPostBuild \u2014 \u2014 \u2014");
75
114
  const config = await getConfigDler();
@@ -90,6 +129,10 @@ export async function dlerPostBuild(isDev, debugDontCopyNonBuildFiles) {
90
129
  await run();
91
130
  }
92
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
+ }
93
136
  }
94
137
  export async function wrapper_CopyNonBuildFiles(config) {
95
138
  if (config.commonPubRegistry === "npm" || config.commonPubRegistry === "npm-jsr") {
@@ -1,20 +1,20 @@
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;
11
11
  projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
12
12
  projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
13
- projectPackageManager?: "bun" | "npm" | "yarn" | "pnpm" | undefined;
13
+ projectPackageManager?: "npm" | "bun" | "yarn" | "pnpm" | undefined;
14
14
  projectState?: "created" | "creating" | undefined;
15
15
  projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
16
16
  projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
17
- projectFramework?: "npm-jsr" | "rempts" | "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;
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?: {
@@ -34,7 +34,6 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
34
34
  } | undefined;
35
35
  preferredLibraries?: {
36
36
  search?: "unknown" | "algolia" | undefined;
37
- cdn?: "unknown" | "cloudflare" | undefined;
38
37
  i18n?: "unknown" | "next-intl" | undefined;
39
38
  analytics?: "unknown" | "vercel" | undefined;
40
39
  authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
@@ -60,6 +59,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
60
59
  mail?: "unknown" | "resend" | undefined;
61
60
  cache?: "unknown" | "redis" | undefined;
62
61
  storage?: "unknown" | "cloudflare" | undefined;
62
+ cdn?: "unknown" | "cloudflare" | undefined;
63
63
  cms?: "unknown" | "contentlayer" | undefined;
64
64
  seo?: "unknown" | "next-seo" | undefined;
65
65
  motion?: "unknown" | "framer" | undefined;
@@ -75,7 +75,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
75
75
  indentStyle?: "space" | "tab" | undefined;
76
76
  quoteMark?: "single" | "double" | undefined;
77
77
  semicolons?: boolean | undefined;
78
- trailingComma?: "all" | "none" | "es5" | undefined;
78
+ trailingComma?: "none" | "all" | "es5" | undefined;
79
79
  bracketSpacing?: boolean | undefined;
80
80
  arrowParens?: "always" | "avoid" | undefined;
81
81
  tabWidth?: number | 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;
@@ -96,7 +96,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
96
96
  importSymbol?: string | undefined;
97
97
  } | undefined;
98
98
  monorepo?: {
99
- type?: "bun" | "pnpm" | "none" | "turborepo" | "nx" | undefined;
99
+ type?: "none" | "bun" | "pnpm" | "turborepo" | "nx" | undefined;
100
100
  packages?: string[] | undefined;
101
101
  sharedPackages?: string[] | undefined;
102
102
  } | undefined;
@@ -113,7 +113,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
113
113
  repoBranch?: string | undefined;
114
114
  repoPrivacy?: "unknown" | "public" | "private" | undefined;
115
115
  projectArchitecture?: "unknown" | "fullstack" | "separated" | undefined;
116
- projectRuntime?: "bun" | "node" | "deno" | undefined;
116
+ projectRuntime?: "node" | "bun" | "deno" | undefined;
117
117
  skipPromptsUseAutoBehavior?: boolean | undefined;
118
118
  deployBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
119
119
  depsBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.31";
2
+ const version = "1.7.32";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
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.31",
56
+ "version": "1.7.32",
57
57
  "keywords": [
58
58
  "reliverse",
59
59
  "cli",