@reliverse/dler 1.7.105 → 1.7.106
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.
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/config/create.d.ts +2 -3
- package/bin/app/config/create.js +3 -14
- package/bin/app/config/prepare.js +2 -2
- package/bin/app/providers/better-t-stack/types.d.ts +11 -11
- package/bin/app/providers/reliverse-stack/rs-impl.d.ts +2 -2
- package/bin/dler.js +1 -1
- package/package.json +1 -1
|
@@ -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.106";
|
|
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.106";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -4,7 +4,7 @@ import type { DeploymentService, RseConfig } from "../types/mod.js";
|
|
|
4
4
|
* Performs an atomic write (using a temp file) and creates a backup of any existing config.
|
|
5
5
|
* In dev mode, automatically builds a relative path to `sdk-mod.ts`.
|
|
6
6
|
*/
|
|
7
|
-
export declare function writeRseConfig(configPath: string, config: RseConfig, isDev: boolean, skipInstallPrompt?: boolean
|
|
7
|
+
export declare function writeRseConfig(configPath: string, config: RseConfig, isDev: boolean, skipInstallPrompt?: boolean): Promise<void>;
|
|
8
8
|
/**
|
|
9
9
|
* rse Config Creation (wrapper around config generator and fixer)
|
|
10
10
|
*/
|
|
@@ -13,7 +13,7 @@ export declare function createRseConfig(projectPath: string, githubUsername: str
|
|
|
13
13
|
* Generates a rse config (rseConfig) by merging defaults, existing config, and overrides.
|
|
14
14
|
* Writes the resulting config to disk (TypeScript or JSONC), optionally skipping install prompts in non-dev mode.
|
|
15
15
|
*/
|
|
16
|
-
export declare function generateRseConfig({ projectName, frontendUsername, deployService, primaryDomain, projectPath, githubUsername, enableI18n, overwrite, isDev, configInfo, customOutputPath, customFilename, skipInstallPrompt,
|
|
16
|
+
export declare function generateRseConfig({ projectName, frontendUsername, deployService, primaryDomain, projectPath, githubUsername, enableI18n, overwrite, isDev, configInfo, customOutputPath, customFilename, skipInstallPrompt, overrides, }: {
|
|
17
17
|
projectName: string;
|
|
18
18
|
frontendUsername: string;
|
|
19
19
|
deployService: DeploymentService;
|
|
@@ -30,6 +30,5 @@ export declare function generateRseConfig({ projectName, frontendUsername, deplo
|
|
|
30
30
|
customOutputPath?: string;
|
|
31
31
|
customFilename?: string;
|
|
32
32
|
skipInstallPrompt?: boolean;
|
|
33
|
-
customPathToTypes?: string;
|
|
34
33
|
overrides: Partial<RseConfig>;
|
|
35
34
|
}): Promise<void>;
|
package/bin/app/config/create.js
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
objectToCodeString,
|
|
49
49
|
updateTsConfigInclude
|
|
50
50
|
} from "./utils.js";
|
|
51
|
-
export async function writeRseConfig(configPath, config, isDev, skipInstallPrompt = false
|
|
51
|
+
export async function writeRseConfig(configPath, config, isDev, skipInstallPrompt = false) {
|
|
52
52
|
if (await fs.pathExists(configPath)) {
|
|
53
53
|
relinka("verbose", `Config file already exists at ${configPath}, skipping creation`);
|
|
54
54
|
return;
|
|
@@ -77,11 +77,7 @@ export async function writeRseConfig(configPath, config, isDev, skipInstallPromp
|
|
|
77
77
|
}
|
|
78
78
|
const objectLiteral = objectToCodeString(config, 0);
|
|
79
79
|
const objectLiteralWithComments = injectSectionComments(objectLiteral);
|
|
80
|
-
|
|
81
|
-
if (customPathToTypes) {
|
|
82
|
-
importPath = customPathToTypes;
|
|
83
|
-
}
|
|
84
|
-
const fileContent2 = `import { defineConfig } from "${importPath}";
|
|
80
|
+
const fileContent2 = `import { defineConfig } from "./reltypes";
|
|
85
81
|
export default defineConfig(${objectLiteralWithComments});
|
|
86
82
|
`;
|
|
87
83
|
await atomicWriteFile(configPath, fileContent2, backupPath2, tempPath2);
|
|
@@ -180,7 +176,6 @@ export async function generateRseConfig({
|
|
|
180
176
|
customOutputPath,
|
|
181
177
|
customFilename,
|
|
182
178
|
skipInstallPrompt = false,
|
|
183
|
-
customPathToTypes,
|
|
184
179
|
overrides
|
|
185
180
|
}) {
|
|
186
181
|
const packageJson = await getPackageJson(projectPath);
|
|
@@ -267,11 +262,5 @@ export async function generateRseConfig({
|
|
|
267
262
|
if (isDev) {
|
|
268
263
|
effectiveConfig.$schema = RSE_SCHEMA_DEV;
|
|
269
264
|
}
|
|
270
|
-
await writeRseConfig(
|
|
271
|
-
effectiveConfigPath,
|
|
272
|
-
effectiveConfig,
|
|
273
|
-
isDev,
|
|
274
|
-
skipInstallPrompt,
|
|
275
|
-
customPathToTypes
|
|
276
|
-
);
|
|
265
|
+
await writeRseConfig(effectiveConfigPath, effectiveConfig, isDev, skipInstallPrompt);
|
|
277
266
|
}
|
|
@@ -91,7 +91,7 @@ function getLibsObject(isDev) {
|
|
|
91
91
|
libPubPause: false,
|
|
92
92
|
libPubRegistry: "npm-jsr"
|
|
93
93
|
},
|
|
94
|
-
"
|
|
94
|
+
"~/app/types/mod": {
|
|
95
95
|
libDeclarations: true,
|
|
96
96
|
libDescription: "config for @reliverse/reliverse",
|
|
97
97
|
libDirName: "cfg",
|
|
@@ -403,7 +403,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
|
|
|
403
403
|
}`;
|
|
404
404
|
}
|
|
405
405
|
function generateConfig(isDev, pkgDescription, configKind = "ts") {
|
|
406
|
-
const importdefineConfigStatement =
|
|
406
|
+
const importdefineConfigStatement = `import { defineConfig } from "./reltypes";`;
|
|
407
407
|
const verboseValue = getValue(isDev, true, DEFAULT_CONFIG_DLER.commonVerbose);
|
|
408
408
|
const coreIsCLI = getCoreIsCLI(isDev);
|
|
409
409
|
const registryValue = getValue(isDev, "npm-jsr", DEFAULT_CONFIG_DLER.commonPubRegistry);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DatabaseSchema: z.ZodEnum<{
|
|
3
3
|
none: "none";
|
|
4
|
-
sqlite: "sqlite";
|
|
5
4
|
postgres: "postgres";
|
|
5
|
+
sqlite: "sqlite";
|
|
6
6
|
mysql: "mysql";
|
|
7
7
|
mongodb: "mongodb";
|
|
8
8
|
}>;
|
|
@@ -17,17 +17,17 @@ export type ORM = z.infer<typeof ORMSchema>;
|
|
|
17
17
|
export declare const BackendSchema: z.ZodEnum<{
|
|
18
18
|
none: "none";
|
|
19
19
|
hono: "hono";
|
|
20
|
-
next: "next";
|
|
21
20
|
express: "express";
|
|
22
21
|
fastify: "fastify";
|
|
22
|
+
next: "next";
|
|
23
23
|
elysia: "elysia";
|
|
24
24
|
convex: "convex";
|
|
25
25
|
}>;
|
|
26
26
|
export type Backend = z.infer<typeof BackendSchema>;
|
|
27
27
|
export declare const RuntimeSchema: z.ZodEnum<{
|
|
28
28
|
none: "none";
|
|
29
|
-
node: "node";
|
|
30
29
|
bun: "bun";
|
|
30
|
+
node: "node";
|
|
31
31
|
workers: "workers";
|
|
32
32
|
}>;
|
|
33
33
|
export type Runtime = z.infer<typeof RuntimeSchema>;
|
|
@@ -35,23 +35,23 @@ export declare const FrontendSchema: z.ZodEnum<{
|
|
|
35
35
|
none: "none";
|
|
36
36
|
svelte: "svelte";
|
|
37
37
|
next: "next";
|
|
38
|
-
"react-router": "react-router";
|
|
39
38
|
"tanstack-router": "tanstack-router";
|
|
40
|
-
|
|
41
|
-
solid: "solid";
|
|
39
|
+
"react-router": "react-router";
|
|
42
40
|
"tanstack-start": "tanstack-start";
|
|
41
|
+
nuxt: "nuxt";
|
|
43
42
|
"native-nativewind": "native-nativewind";
|
|
44
43
|
"native-unistyles": "native-unistyles";
|
|
44
|
+
solid: "solid";
|
|
45
45
|
}>;
|
|
46
46
|
export type Frontend = z.infer<typeof FrontendSchema>;
|
|
47
47
|
export declare const AddonsSchema: z.ZodEnum<{
|
|
48
48
|
none: "none";
|
|
49
49
|
biome: "biome";
|
|
50
|
-
turborepo: "turborepo";
|
|
51
|
-
starlight: "starlight";
|
|
52
|
-
tauri: "tauri";
|
|
53
50
|
pwa: "pwa";
|
|
51
|
+
tauri: "tauri";
|
|
52
|
+
starlight: "starlight";
|
|
54
53
|
husky: "husky";
|
|
54
|
+
turborepo: "turborepo";
|
|
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
|
-
npm: "npm";
|
|
65
|
-
pnpm: "pnpm";
|
|
66
64
|
bun: "bun";
|
|
65
|
+
pnpm: "pnpm";
|
|
66
|
+
npm: "npm";
|
|
67
67
|
}>;
|
|
68
68
|
export type PackageManager = z.infer<typeof PackageManagerSchema>;
|
|
69
69
|
export declare const DatabaseSetupSchema: z.ZodEnum<{
|
|
@@ -14,7 +14,7 @@ export type BrowserRepoOption = "reliverse/template-browser-extension" | "unknow
|
|
|
14
14
|
export declare function configureBrowserExtension(): Promise<{
|
|
15
15
|
displayName: string;
|
|
16
16
|
description: string;
|
|
17
|
-
features: ("
|
|
17
|
+
features: ("webview" | "language" | "commands" | "themes")[];
|
|
18
18
|
activation: "onCommand" | "onLanguage" | "startup";
|
|
19
19
|
publisher: string;
|
|
20
20
|
}>;
|
|
@@ -24,7 +24,7 @@ export declare function configureBrowserExtension(): Promise<{
|
|
|
24
24
|
export declare function configureVSCodeExtension(): Promise<{
|
|
25
25
|
displayName: string;
|
|
26
26
|
description: string;
|
|
27
|
-
features: ("
|
|
27
|
+
features: ("webview" | "language" | "commands" | "themes")[];
|
|
28
28
|
activation: "onCommand" | "onLanguage" | "startup";
|
|
29
29
|
publisher: string;
|
|
30
30
|
}>;
|
package/bin/dler.js
CHANGED
|
@@ -22,7 +22,7 @@ let isDev = process.env.DLER_DEV_MODE === "true";
|
|
|
22
22
|
const main = defineCommand({
|
|
23
23
|
meta: {
|
|
24
24
|
name: "dler",
|
|
25
|
-
version: "1.7.
|
|
25
|
+
version: "1.7.106",
|
|
26
26
|
description: `Displays dler's command menu.
|
|
27
27
|
To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
|
|
28
28
|
Available menu commands: ${MENU_CMDS.join(", ")}`
|