@reliverse/dler 1.7.133 → 1.7.134
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" | "
|
|
168
|
+
export declare function getPackageManager(): Promise<"bun" | "npm" | "yarn" | "pnpm">;
|
|
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.
|
|
2
|
+
export declare const cliVersion = "1.7.134";
|
|
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.
|
|
4
|
+
const version = "1.7.134";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -84,29 +84,8 @@ async function ensureGitignoreEntries(cwd) {
|
|
|
84
84
|
relinka("success", `Updated .gitignore with required entries`);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
function
|
|
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`;
|
|
@@ -260,7 +239,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
|
|
|
260
239
|
"coreDeclarations": ${DEFAULT_CONFIG_RELIVERSE.coreDeclarations},
|
|
261
240
|
"coreDescription": ${JSON.stringify(coreDescriptionValue)},
|
|
262
241
|
"coreEntryFile": "${DEFAULT_CONFIG_RELIVERSE.coreEntryFile}",
|
|
263
|
-
"coreEntrySrcDir": "${
|
|
242
|
+
"coreEntrySrcDir": "${getCoreEntrySrcDir(isDev)}",
|
|
264
243
|
"coreIsCLI": {
|
|
265
244
|
"enabled": false,
|
|
266
245
|
"scripts": {}
|
|
@@ -297,7 +276,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
|
|
|
297
276
|
"libsActMode": "${libsActModeValue}",
|
|
298
277
|
"libsDirDist": "${DEFAULT_CONFIG_RELIVERSE.libsDirDist}",
|
|
299
278
|
"libsDirSrc": "${DEFAULT_CONFIG_RELIVERSE.libsDirSrc}",
|
|
300
|
-
"libsList":
|
|
279
|
+
"libsList": {},
|
|
301
280
|
// Logger setup
|
|
302
281
|
"logsFileName": "${DEFAULT_CONFIG_RELIVERSE.logsFileName}",
|
|
303
282
|
"logsFreshFile": ${DEFAULT_CONFIG_RELIVERSE.logsFreshFile},
|
|
@@ -433,7 +412,6 @@ function generateConfig(isDev, pkgDescription, configKind = "ts", usePackageImpo
|
|
|
433
412
|
"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
413
|
pkgDescription || DEFAULT_CONFIG_RELIVERSE.coreDescription
|
|
435
414
|
);
|
|
436
|
-
const libsActModeValue = getValue(isDev, "main-and-libs", DEFAULT_CONFIG_RELIVERSE.libsActMode);
|
|
437
415
|
if (configKind === "jsonc") {
|
|
438
416
|
return generateJsoncConfig(isDev, pkgDescription);
|
|
439
417
|
}
|
|
@@ -622,10 +600,10 @@ function generateConfig(isDev, pkgDescription, configKind = "ts", usePackageImpo
|
|
|
622
600
|
" // Publish specific dirs as separate packages",
|
|
623
601
|
" // This feature is experimental at the moment",
|
|
624
602
|
" // Please commit your changes before using it",
|
|
625
|
-
' libsActMode: "
|
|
603
|
+
' libsActMode: "main-project-only",',
|
|
626
604
|
' libsDirDist: "' + DEFAULT_CONFIG_RELIVERSE.libsDirDist + '",',
|
|
627
605
|
' libsDirSrc: "' + DEFAULT_CONFIG_RELIVERSE.libsDirSrc + '",',
|
|
628
|
-
" libsList:
|
|
606
|
+
" libsList: {},",
|
|
629
607
|
"",
|
|
630
608
|
" // @reliverse/relinka logger setup",
|
|
631
609
|
' logsFileName: "' + DEFAULT_CONFIG_RELIVERSE.logsFileName + '",',
|
|
@@ -798,10 +776,7 @@ function generateConfig(isDev, pkgDescription, configKind = "ts", usePackageImpo
|
|
|
798
776
|
return configTemplate;
|
|
799
777
|
}
|
|
800
778
|
function getCoreIsCLI(isDev) {
|
|
801
|
-
return isDev ? `coreIsCLI: { enabled: true, scripts: {
|
|
802
|
-
// enabled: false,
|
|
803
|
-
// scripts: { mycli: "mycli.ts" },
|
|
804
|
-
// },`;
|
|
779
|
+
return isDev ? `coreIsCLI: { enabled: true, scripts: { rse: "rse.ts" } },` : `coreIsCLI: { enabled: false, scripts: {} },`;
|
|
805
780
|
}
|
|
806
781
|
function getValue(isDev, devValue, prodValue) {
|
|
807
782
|
return isDev ? devValue : prodValue;
|
|
@@ -810,7 +785,7 @@ function getBumpFilter(isDev) {
|
|
|
810
785
|
return isDev ? `[
|
|
811
786
|
"package.json",
|
|
812
787
|
"reliverse.ts",
|
|
813
|
-
"src-ts/
|
|
788
|
+
"src-ts/rse.ts",
|
|
814
789
|
]` : `["package.json", "reliverse.ts"]`;
|
|
815
790
|
}
|
|
816
791
|
function getPublishArtifacts(isDev) {
|
|
@@ -818,12 +793,7 @@ function getPublishArtifacts(isDev) {
|
|
|
818
793
|
global: ["package.json", "README.md", "LICENSE", "LICENSES"],
|
|
819
794
|
"dist-jsr": [],
|
|
820
795
|
"dist-npm": [],
|
|
821
|
-
"dist-libs": {
|
|
822
|
-
"@reliverse/reliverse-sdk": {
|
|
823
|
-
jsr: [],
|
|
824
|
-
npm: [],
|
|
825
|
-
},
|
|
826
|
-
},
|
|
796
|
+
"dist-libs": {},
|
|
827
797
|
}` : `{
|
|
828
798
|
global: ["package.json", "README.md", "LICENSE"],
|
|
829
799
|
"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,17 +10,17 @@ 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";
|
|
23
|
+
convex: "convex";
|
|
24
24
|
elysia: "elysia";
|
|
25
25
|
}>;
|
|
26
26
|
export type Backend = z.infer<typeof BackendSchema>;
|
|
@@ -50,8 +50,8 @@ export declare const AddonsSchema: z.ZodEnum<{
|
|
|
50
50
|
tauri: "tauri";
|
|
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<{
|
package/bin/impl/schema/utils.js
CHANGED
|
@@ -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;
|