@reliverse/dler 1.7.95 → 1.7.96
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/better/auth/cmd.js +4 -2
- package/bin/app/build/postbuild.js +1 -1
- package/bin/app/build/prebuild.js +1 -1
- package/bin/app/cli/impl.js +1 -1
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/init/init-utils/mm-deprecated/editor-menu.js +2 -2
- package/bin/app/providers/better-t-stack/types.d.ts +11 -11
- package/bin/dler.js +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { relinka } from "@reliverse/relinka";
|
|
|
4
4
|
import { defineArgs, defineCommand, runCmd } from "@reliverse/rempts";
|
|
5
5
|
import { execaCommand } from "execa";
|
|
6
6
|
import MagicString from "magic-string";
|
|
7
|
-
import {
|
|
7
|
+
import { getBetterAuthGenerateCmd } from "../../cmds.js";
|
|
8
8
|
import { configPath, schemaPath } from "./consts.js";
|
|
9
9
|
const notice = `/**
|
|
10
10
|
* THIS FILE IS AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
@@ -43,7 +43,9 @@ export default defineCommand({
|
|
|
43
43
|
relinka("error", "Schema file does not exist; tried:", args.schema);
|
|
44
44
|
process.exit(1);
|
|
45
45
|
}
|
|
46
|
-
await runCmd(await
|
|
46
|
+
await runCmd(await getBetterAuthGenerateCmd(), [
|
|
47
|
+
`--config ${configPath} --output ${schemaPath}`
|
|
48
|
+
]);
|
|
47
49
|
const filePath = path.resolve(schemaPath);
|
|
48
50
|
const originalContent = await fs.readFile(filePath, "utf8");
|
|
49
51
|
const s = new MagicString(originalContent);
|
|
@@ -3,7 +3,7 @@ import fs from "@reliverse/relifso";
|
|
|
3
3
|
import { relinka } from "@reliverse/relinka";
|
|
4
4
|
import { runCmd } from "@reliverse/rempts";
|
|
5
5
|
import { glob } from "tinyglobby";
|
|
6
|
-
import { getCheckCmd } from "
|
|
6
|
+
import { getCheckCmd } from "../cmds.js";
|
|
7
7
|
import { PROJECT_ROOT } from "../config/constants.js";
|
|
8
8
|
import { getConfigDler } from "../config/load.js";
|
|
9
9
|
import { applyMagicSpells } from "../magic/magic-apply.js";
|
|
@@ -3,7 +3,7 @@ import fs from "@reliverse/relifso";
|
|
|
3
3
|
import { relinka } from "@reliverse/relinka";
|
|
4
4
|
import { runCmd } from "@reliverse/rempts";
|
|
5
5
|
import { glob } from "tinyglobby";
|
|
6
|
-
import { getCheckCmd } from "
|
|
6
|
+
import { getCheckCmd } from "../cmds.js";
|
|
7
7
|
import { PROJECT_ROOT } from "../config/constants.js";
|
|
8
8
|
import { executeCommand, executeDlerHooks, isCommandAvailable } from "./ppb-utils.js";
|
|
9
9
|
const createToolRunner = () => ({
|
package/bin/app/cli/impl.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { runCmd, selectPrompt } from "@reliverse/rempts";
|
|
2
2
|
import { generate } from "random-words";
|
|
3
|
-
import { getWebCmd } from "@/app/cmds";
|
|
4
3
|
import { aiMenu } from "../ai/ai-menu.js";
|
|
4
|
+
import { getWebCmd } from "../cmds.js";
|
|
5
5
|
import { detectProject } from "../config/cfg-detect.js";
|
|
6
6
|
import { cliJsrPath, UNKNOWN_VALUE } from "../config/constants.js";
|
|
7
7
|
import { ad, getRandomMessage, getWelcomeTitle, premium } from "../db/messages.js";
|
|
@@ -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.96";
|
|
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.96";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { re } from "@reliverse/relico";
|
|
2
2
|
import { relinka } from "@reliverse/relinka";
|
|
3
3
|
import { inputPrompt, runCmd, selectPrompt } from "@reliverse/rempts";
|
|
4
|
-
import { getAuthCmd } from "@/app/cmds";
|
|
5
4
|
import { useLanguine } from "../../../add/add-local/i18n/languine.js";
|
|
5
|
+
import { getBetterAuthCmd } from "../../../cmds.js";
|
|
6
6
|
import { getProjectContent } from "../../../config/cfg-content.js";
|
|
7
7
|
import { envArgImpl } from "../../../env/env-impl.js";
|
|
8
8
|
import { manageDrizzleSchema } from "../../mm-deprecated/drizzle/manageDrizzleSchema.js";
|
|
@@ -148,7 +148,7 @@ export async function handleOpenProjectMenu(projects, isDev, memory, cwd, maskIn
|
|
|
148
148
|
relinka("info", "The following args will be passed to the rse auth command:");
|
|
149
149
|
relinka("log", `--config ${selectedProject.path}/src/lib/auth.ts`);
|
|
150
150
|
relinka("log", `--output ${selectedProject.path}/src/db/schema/user/tables.ts`);
|
|
151
|
-
await runCmd(await
|
|
151
|
+
await runCmd(await getBetterAuthCmd(), [
|
|
152
152
|
`--config ${selectedProject.path}/src/lib/auth.ts --output ${selectedProject.path}/src/db/schema/user/tables.ts`
|
|
153
153
|
]);
|
|
154
154
|
break;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DatabaseSchema: z.ZodEnum<{
|
|
3
3
|
none: "none";
|
|
4
|
-
sqlite: "sqlite";
|
|
5
4
|
mysql: "mysql";
|
|
5
|
+
sqlite: "sqlite";
|
|
6
6
|
mongodb: "mongodb";
|
|
7
7
|
postgres: "postgres";
|
|
8
8
|
}>;
|
|
9
9
|
export type Database = z.infer<typeof DatabaseSchema>;
|
|
10
10
|
export declare const ORMSchema: z.ZodEnum<{
|
|
11
11
|
none: "none";
|
|
12
|
-
mongoose: "mongoose";
|
|
13
12
|
drizzle: "drizzle";
|
|
13
|
+
mongoose: "mongoose";
|
|
14
14
|
prisma: "prisma";
|
|
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
|
+
convex: "convex";
|
|
20
21
|
next: "next";
|
|
22
|
+
elysia: "elysia";
|
|
21
23
|
express: "express";
|
|
22
24
|
fastify: "fastify";
|
|
23
|
-
convex: "convex";
|
|
24
|
-
elysia: "elysia";
|
|
25
25
|
}>;
|
|
26
26
|
export type Backend = z.infer<typeof BackendSchema>;
|
|
27
27
|
export declare const RuntimeSchema: z.ZodEnum<{
|
|
28
|
-
none: "none";
|
|
29
28
|
bun: "bun";
|
|
29
|
+
none: "none";
|
|
30
30
|
node: "node";
|
|
31
31
|
workers: "workers";
|
|
32
32
|
}>;
|
|
@@ -39,24 +39,24 @@ export declare const FrontendSchema: z.ZodEnum<{
|
|
|
39
39
|
next: "next";
|
|
40
40
|
"react-router": "react-router";
|
|
41
41
|
"tanstack-router": "tanstack-router";
|
|
42
|
+
"tanstack-start": "tanstack-start";
|
|
42
43
|
"native-nativewind": "native-nativewind";
|
|
43
44
|
"native-unistyles": "native-unistyles";
|
|
44
|
-
"tanstack-start": "tanstack-start";
|
|
45
45
|
}>;
|
|
46
46
|
export type Frontend = z.infer<typeof FrontendSchema>;
|
|
47
47
|
export declare const AddonsSchema: z.ZodEnum<{
|
|
48
|
-
none: "none";
|
|
49
48
|
biome: "biome";
|
|
50
|
-
|
|
51
|
-
starlight: "starlight";
|
|
49
|
+
none: "none";
|
|
52
50
|
turborepo: "turborepo";
|
|
53
|
-
|
|
51
|
+
starlight: "starlight";
|
|
54
52
|
husky: "husky";
|
|
53
|
+
pwa: "pwa";
|
|
54
|
+
tauri: "tauri";
|
|
55
55
|
}>;
|
|
56
56
|
export type Addons = z.infer<typeof AddonsSchema>;
|
|
57
57
|
export declare const ExamplesSchema: z.ZodEnum<{
|
|
58
|
-
ai: "ai";
|
|
59
58
|
none: "none";
|
|
59
|
+
ai: "ai";
|
|
60
60
|
todo: "todo";
|
|
61
61
|
}>;
|
|
62
62
|
export type Examples = z.infer<typeof ExamplesSchema>;
|
package/bin/dler.js
CHANGED
|
@@ -12,7 +12,7 @@ let isDev = process.env.DLER_DEV_MODE === "true";
|
|
|
12
12
|
const main = defineCommand({
|
|
13
13
|
meta: {
|
|
14
14
|
name: "dler",
|
|
15
|
-
version: "1.7.
|
|
15
|
+
version: "1.7.96",
|
|
16
16
|
description: `Displays dler's command menu.
|
|
17
17
|
To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
|
|
18
18
|
Available menu commands: ${MENU_CMDS.join(", ")}`
|