@reliverse/dler 1.7.133 → 1.7.135

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.
@@ -146,8 +146,8 @@ export declare const optionsSchema: z.ZodObject<{
146
146
  cwd: z.ZodString;
147
147
  config: z.ZodOptional<z.ZodString>;
148
148
  database: z.ZodOptional<z.ZodEnum<{
149
- sqlite: "sqlite";
150
149
  mysql: "mysql";
150
+ sqlite: "sqlite";
151
151
  mongodb: "mongodb";
152
152
  postgres: "postgres";
153
153
  mssql: "mssql";
@@ -165,7 +165,7 @@ export declare const optionsSchema: z.ZodObject<{
165
165
  }, z.core.$strip>;
166
166
  export declare const outroText = "\uD83E\uDD73 All Done, Happy Hacking!";
167
167
  export declare function getLatestNpmVersion(packageName: string): Promise<string>;
168
- export declare function getPackageManager(): Promise<"bun" | "npm" | "pnpm" | "yarn">;
168
+ export declare function getPackageManager(): Promise<"npm" | "pnpm" | "yarn" | "bun">;
169
169
  export declare function getEnvFiles(cwd: string): Promise<string[]>;
170
170
  export declare function updateEnvs({ envs, files, isCommented, }: {
171
171
  /**
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_ROOT: string;
2
- export declare const cliVersion = "1.7.133";
2
+ export declare const cliVersion = "1.7.135";
3
3
  export declare const cliName = "@reliverse/rse";
4
4
  export declare const rseName = "@reliverse/rse";
5
5
  export declare const dlerName = "@reliverse/dler";
@@ -1,7 +1,7 @@
1
1
  import os from "node:os";
2
2
  import path from "@reliverse/pathkit";
3
3
  export const PROJECT_ROOT = path.resolve(process.cwd());
4
- const version = "1.7.133";
4
+ const version = "1.7.135";
5
5
  export const cliVersion = version;
6
6
  export const cliName = "@reliverse/rse";
7
7
  export const rseName = "@reliverse/rse";
@@ -84,34 +84,12 @@ async function ensureGitignoreEntries(cwd) {
84
84
  relinka("success", `Updated .gitignore with required entries`);
85
85
  }
86
86
  }
87
- function getLibsObject(isDev) {
88
- return isDev ? {
89
- "@reliverse/reliverse-sdk": {
90
- libDeclarations: true,
91
- libDescription: "@reliverse/reliverse without cli",
92
- libDirName: "sdk",
93
- libMainFile: "sdk/sdk-mod.ts",
94
- libPkgKeepDeps: true,
95
- libTranspileMinify: true,
96
- libPubPause: false,
97
- libPubRegistry: "npm-jsr"
98
- },
99
- "~/app/types/mod": {
100
- libDeclarations: true,
101
- libDescription: "config for @reliverse/reliverse",
102
- libDirName: "cfg",
103
- libMainFile: "cfg/cfg-mod.ts",
104
- libPkgKeepDeps: true,
105
- libTranspileMinify: true,
106
- libPubPause: false,
107
- libPubRegistry: "npm-jsr"
108
- }
109
- } : {};
87
+ function getCoreEntrySrcDir(isDev) {
88
+ return isDev ? "src-ts" : "src";
110
89
  }
111
90
  function generateJsoncConfig(isDev, pkgDescription) {
112
91
  const schemaUrl = `${rseOrg}/schema.json`;
113
92
  const verboseValue = getValue(isDev, true, DEFAULT_CONFIG_RELIVERSE.commonVerbose);
114
- const registryValue = getValue(isDev, "npm-jsr", DEFAULT_CONFIG_RELIVERSE.commonPubRegistry);
115
93
  const pausePublishValue = getValue(isDev, false, DEFAULT_CONFIG_RELIVERSE.commonPubPause);
116
94
  const coreDescriptionValue = getValue(
117
95
  isDev,
@@ -252,7 +230,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
252
230
  "bumpSet": "${DEFAULT_CONFIG_RELIVERSE.bumpSet}",
253
231
  // Common configuration
254
232
  "commonPubPause": ${pausePublishValue},
255
- "commonPubRegistry": "${registryValue}",
233
+ "commonPubRegistry": ${DEFAULT_CONFIG_RELIVERSE.commonPubRegistry},
256
234
  "commonVerbose": ${verboseValue},
257
235
  "displayBuildPubLogs": ${DEFAULT_CONFIG_RELIVERSE.displayBuildPubLogs},
258
236
  // Core configuration
@@ -260,7 +238,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
260
238
  "coreDeclarations": ${DEFAULT_CONFIG_RELIVERSE.coreDeclarations},
261
239
  "coreDescription": ${JSON.stringify(coreDescriptionValue)},
262
240
  "coreEntryFile": "${DEFAULT_CONFIG_RELIVERSE.coreEntryFile}",
263
- "coreEntrySrcDir": "${DEFAULT_CONFIG_RELIVERSE.coreEntrySrcDir}",
241
+ "coreEntrySrcDir": "${getCoreEntrySrcDir(isDev)}",
264
242
  "coreIsCLI": {
265
243
  "enabled": false,
266
244
  "scripts": {}
@@ -297,7 +275,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
297
275
  "libsActMode": "${libsActModeValue}",
298
276
  "libsDirDist": "${DEFAULT_CONFIG_RELIVERSE.libsDirDist}",
299
277
  "libsDirSrc": "${DEFAULT_CONFIG_RELIVERSE.libsDirSrc}",
300
- "libsList": ${JSON.stringify(getLibsObject(isDev), null, 2)},
278
+ "libsList": {},
301
279
  // Logger setup
302
280
  "logsFileName": "${DEFAULT_CONFIG_RELIVERSE.logsFileName}",
303
281
  "logsFreshFile": ${DEFAULT_CONFIG_RELIVERSE.logsFreshFile},
@@ -426,14 +404,12 @@ function generateConfig(isDev, pkgDescription, configKind = "ts", usePackageImpo
426
404
  const importdefineConfigStatement = usePackageImport ? `import { defineConfig } from "@reliverse/dler";` : `import { defineConfig } from "./reltypes";`;
427
405
  const verboseValue = getValue(isDev, true, DEFAULT_CONFIG_RELIVERSE.commonVerbose);
428
406
  const coreIsCLI = getCoreIsCLI(isDev);
429
- const registryValue = getValue(isDev, "npm-jsr", DEFAULT_CONFIG_RELIVERSE.commonPubRegistry);
430
407
  const pausePublishValue = getValue(isDev, false, DEFAULT_CONFIG_RELIVERSE.commonPubPause);
431
408
  const coreDescriptionValue = getValue(
432
409
  isDev,
433
410
  "reliverse (prev. dler) is a flexible, unified, and fully automated bundler for TypeScript and JavaScript projects, as well as an NPM and JSR publishing tool.",
434
411
  pkgDescription || DEFAULT_CONFIG_RELIVERSE.coreDescription
435
412
  );
436
- const libsActModeValue = getValue(isDev, "main-and-libs", DEFAULT_CONFIG_RELIVERSE.libsActMode);
437
413
  if (configKind === "jsonc") {
438
414
  return generateJsoncConfig(isDev, pkgDescription);
439
415
  }
@@ -575,7 +551,7 @@ function generateConfig(isDev, pkgDescription, configKind = "ts", usePackageImpo
575
551
  "",
576
552
  " // Common configuration",
577
553
  " commonPubPause: " + pausePublishValue + ",",
578
- ' commonPubRegistry: "' + registryValue + '",',
554
+ " commonPubRegistry: " + DEFAULT_CONFIG_RELIVERSE.commonPubRegistry + ",",
579
555
  " commonVerbose: " + verboseValue + ",",
580
556
  " displayBuildPubLogs: " + DEFAULT_CONFIG_RELIVERSE.displayBuildPubLogs + ",",
581
557
  "",
@@ -622,10 +598,10 @@ function generateConfig(isDev, pkgDescription, configKind = "ts", usePackageImpo
622
598
  " // Publish specific dirs as separate packages",
623
599
  " // This feature is experimental at the moment",
624
600
  " // Please commit your changes before using it",
625
- ' libsActMode: "' + libsActModeValue + '",',
601
+ ' libsActMode: "main-project-only",',
626
602
  ' libsDirDist: "' + DEFAULT_CONFIG_RELIVERSE.libsDirDist + '",',
627
603
  ' libsDirSrc: "' + DEFAULT_CONFIG_RELIVERSE.libsDirSrc + '",',
628
- " libsList: " + JSON.stringify(getLibsObject(isDev), null, 2) + ",",
604
+ " libsList: {},",
629
605
  "",
630
606
  " // @reliverse/relinka logger setup",
631
607
  ' logsFileName: "' + DEFAULT_CONFIG_RELIVERSE.logsFileName + '",',
@@ -798,10 +774,7 @@ function generateConfig(isDev, pkgDescription, configKind = "ts", usePackageImpo
798
774
  return configTemplate;
799
775
  }
800
776
  function getCoreIsCLI(isDev) {
801
- return isDev ? `coreIsCLI: { enabled: true, scripts: { reliverse: "reliverse.ts" } },` : `// coreIsCLI: {
802
- // enabled: false,
803
- // scripts: { mycli: "mycli.ts" },
804
- // },`;
777
+ return isDev ? `coreIsCLI: { enabled: true, scripts: { rse: "rse.ts" } },` : `coreIsCLI: { enabled: false, scripts: {} },`;
805
778
  }
806
779
  function getValue(isDev, devValue, prodValue) {
807
780
  return isDev ? devValue : prodValue;
@@ -810,7 +783,7 @@ function getBumpFilter(isDev) {
810
783
  return isDev ? `[
811
784
  "package.json",
812
785
  "reliverse.ts",
813
- "src-ts/impl/config/info.ts",
786
+ "src-ts/rse.ts",
814
787
  ]` : `["package.json", "reliverse.ts"]`;
815
788
  }
816
789
  function getPublishArtifacts(isDev) {
@@ -818,12 +791,7 @@ function getPublishArtifacts(isDev) {
818
791
  global: ["package.json", "README.md", "LICENSE", "LICENSES"],
819
792
  "dist-jsr": [],
820
793
  "dist-npm": [],
821
- "dist-libs": {
822
- "@reliverse/reliverse-sdk": {
823
- jsr: [],
824
- npm: [],
825
- },
826
- },
794
+ "dist-libs": {},
827
795
  }` : `{
828
796
  global: ["package.json", "README.md", "LICENSE"],
829
797
  "dist-jsr": [],
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const DatabaseSchema: z.ZodEnum<{
3
- sqlite: "sqlite";
4
3
  none: "none";
5
4
  mysql: "mysql";
5
+ sqlite: "sqlite";
6
6
  mongodb: "mongodb";
7
7
  postgres: "postgres";
8
8
  }>;
@@ -10,18 +10,18 @@ export type Database = z.infer<typeof DatabaseSchema>;
10
10
  export declare const ORMSchema: z.ZodEnum<{
11
11
  none: "none";
12
12
  drizzle: "drizzle";
13
- mongoose: "mongoose";
14
13
  prisma: "prisma";
14
+ mongoose: "mongoose";
15
15
  }>;
16
16
  export type ORM = z.infer<typeof ORMSchema>;
17
17
  export declare const BackendSchema: z.ZodEnum<{
18
18
  none: "none";
19
19
  hono: "hono";
20
20
  next: "next";
21
- convex: "convex";
22
21
  express: "express";
23
22
  fastify: "fastify";
24
23
  elysia: "elysia";
24
+ convex: "convex";
25
25
  }>;
26
26
  export type Backend = z.infer<typeof BackendSchema>;
27
27
  export declare const RuntimeSchema: z.ZodEnum<{
@@ -46,12 +46,12 @@ export declare const FrontendSchema: z.ZodEnum<{
46
46
  export type Frontend = z.infer<typeof FrontendSchema>;
47
47
  export declare const AddonsSchema: z.ZodEnum<{
48
48
  none: "none";
49
- biome: "biome";
50
49
  tauri: "tauri";
50
+ biome: "biome";
51
51
  starlight: "starlight";
52
52
  turborepo: "turborepo";
53
- husky: "husky";
54
53
  pwa: "pwa";
54
+ husky: "husky";
55
55
  }>;
56
56
  export type Addons = z.infer<typeof AddonsSchema>;
57
57
  export declare const ExamplesSchema: z.ZodEnum<{
@@ -61,9 +61,9 @@ export declare const ExamplesSchema: z.ZodEnum<{
61
61
  }>;
62
62
  export type Examples = z.infer<typeof ExamplesSchema>;
63
63
  export declare const PackageManagerSchema: z.ZodEnum<{
64
- bun: "bun";
65
64
  npm: "npm";
66
65
  pnpm: "pnpm";
66
+ bun: "bun";
67
67
  }>;
68
68
  export type PackageManager = z.infer<typeof PackageManagerSchema>;
69
69
  export declare const DatabaseSetupSchema: z.ZodEnum<{
@@ -33,7 +33,7 @@ export async function ensureReltypesFile(cwd) {
33
33
  const raw = await fs.readFile(pkgJsonPath, "utf8");
34
34
  const pkg = JSON.parse(raw);
35
35
  const hasDler = Boolean(
36
- pkg.dependencies && pkg.dependencies["@reliverse/dler"] || pkg.devDependencies && pkg.devDependencies["@reliverse/dler"]
36
+ pkg.name === "@reliverse/dler" || pkg.dependencies && pkg.dependencies["@reliverse/dler"] || pkg.devDependencies && pkg.devDependencies["@reliverse/dler"]
37
37
  );
38
38
  if (hasDler) {
39
39
  return;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "@babel/preset-typescript": "^7.27.1",
6
6
  "@hookform/resolvers": "^5.2.1",
7
7
  "@libsql/client": "^0.15.14",
8
- "@mendable/firecrawl-js": "^3.3.0",
8
+ "@mendable/firecrawl-js": "^4.1.0",
9
9
  "@mrleebo/prisma-ast": "^0.13.0",
10
10
  "@octokit/plugin-rest-endpoint-methods": "^16.0.0",
11
11
  "@octokit/request-error": "^7.0.0",
@@ -13,13 +13,13 @@
13
13
  "@radix-ui/react-label": "^2.1.7",
14
14
  "@radix-ui/react-select": "^2.2.6",
15
15
  "@radix-ui/react-slot": "^1.2.3",
16
- "@reliverse/bleump": "^1.1.8",
16
+ "@reliverse/bleump": "^1.2.0",
17
17
  "@reliverse/pathkit": "^1.3.4",
18
18
  "@reliverse/reglob": "^1.0.0",
19
19
  "@reliverse/relico": "^1.3.9",
20
20
  "@reliverse/relifso": "^1.4.5",
21
21
  "@reliverse/relinka": "^1.6.1",
22
- "@reliverse/rempts": "^1.7.58",
22
+ "@reliverse/rempts": "^1.7.59",
23
23
  "@reliverse/runtime": "^1.0.3",
24
24
  "@rollup/plugin-alias": "^5.1.1",
25
25
  "@rollup/plugin-commonjs": "^28.0.6",
@@ -74,7 +74,6 @@
74
74
  "octokit": "^5.0.3",
75
75
  "ofetch": "^1.4.1",
76
76
  "open": "^10.2.0",
77
- "ora": "^8.2.0",
78
77
  "p-all": "^5.0.0",
79
78
  "p-limit": "^7.1.1",
80
79
  "p-map": "^7.0.3",
@@ -93,7 +92,7 @@
93
92
  "react-hook-form": "^7.62.0",
94
93
  "registry-auth-token": "^5.1.0",
95
94
  "registry-url": "^7.2.0",
96
- "rollup": "^4.49.0",
95
+ "rollup": "^4.50.0",
97
96
  "rollup-plugin-dts": "^6.2.3",
98
97
  "sass": "^1.91.0",
99
98
  "scule": "^1.3.0",
@@ -123,7 +122,7 @@
123
122
  "license": "MIT",
124
123
  "name": "@reliverse/dler",
125
124
  "type": "module",
126
- "version": "1.7.133",
125
+ "version": "1.7.135",
127
126
  "author": "reliverse",
128
127
  "bugs": {
129
128
  "email": "blefnk@gmail.com",