@reliverse/dler 1.7.106 → 1.7.108
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/build/cmd.js +5 -1
- package/bin/app/check/cmd.js +1 -1
- package/bin/app/config/cmd.d.ts +4 -0
- package/bin/app/config/cmd.js +6 -2
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/config/create.js +2 -2
- package/bin/app/config/prepare.js +1 -1
- package/bin/app/config/unstable.js +4 -4
- package/bin/app/mkdist/cmd.js +1 -1
- package/bin/app/providers/better-t-stack/types.d.ts +15 -15
- package/bin/app/providers/reliverse-stack/rs-impl.d.ts +2 -2
- package/bin/app/pub/cmd.js +5 -2
- package/bin/app/toolbox/toolbox-vercel.js +1 -9
- package/bin/app/utils/exec/exec-error.d.ts +1 -1
- package/bin/app/utils/hasOnlyRseConfig.js +1 -1
- package/bin/app/utils/native-cli/nc-mod.js +1 -1
- package/bin/app/utils/schemaMemory.d.ts +2 -2
- package/bin/dler.js +4 -7
- package/bin/mod.d.ts +0 -6
- package/bin/mod.js +0 -6
- package/package.json +2 -2
package/bin/app/build/cmd.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { relinka } from "@reliverse/relinka";
|
|
1
2
|
import { defineArgs, defineCommand } from "@reliverse/rempts";
|
|
2
3
|
import { dlerBuild } from "./impl.js";
|
|
3
4
|
import { getConfigDler } from "../config/load.js";
|
|
4
5
|
import { finalizeBuild } from "../utils/finalize.js";
|
|
6
|
+
import { prepareReliverseEnvironment } from "../config/prepare.js";
|
|
5
7
|
export default defineCommand({
|
|
6
8
|
meta: {
|
|
7
9
|
name: "build",
|
|
@@ -22,7 +24,9 @@ export default defineCommand({
|
|
|
22
24
|
}
|
|
23
25
|
}),
|
|
24
26
|
async run({ args }) {
|
|
25
|
-
const isDev = args.dev
|
|
27
|
+
const isDev = args.dev;
|
|
28
|
+
await prepareReliverseEnvironment(isDev, "ts");
|
|
29
|
+
relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
|
|
26
30
|
const config = await getConfigDler();
|
|
27
31
|
const { timer } = await dlerBuild(
|
|
28
32
|
isDev,
|
package/bin/app/check/cmd.js
CHANGED
package/bin/app/config/cmd.d.ts
CHANGED
package/bin/app/config/cmd.js
CHANGED
|
@@ -8,6 +8,10 @@ export default defineCommand({
|
|
|
8
8
|
description: "Manage project-level and device-global configurations"
|
|
9
9
|
},
|
|
10
10
|
args: defineArgs({
|
|
11
|
+
dev: {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
description: "Runs the CLI in dev mode"
|
|
14
|
+
},
|
|
11
15
|
mode: {
|
|
12
16
|
type: "string",
|
|
13
17
|
description: "Config mode: copy-remote, copy-internal, create",
|
|
@@ -31,11 +35,11 @@ export default defineCommand({
|
|
|
31
35
|
}
|
|
32
36
|
}),
|
|
33
37
|
run: async ({ args }) => {
|
|
34
|
-
const { mode, tool, update, type } = args;
|
|
38
|
+
const { dev, mode, tool, update, type } = args;
|
|
35
39
|
try {
|
|
36
40
|
if (mode === "create") {
|
|
37
41
|
const configKind = type === "jsonc" ? "jsonc" : "ts";
|
|
38
|
-
const isDev =
|
|
42
|
+
const isDev = dev;
|
|
39
43
|
await ensureReliverseConfig(isDev, configKind);
|
|
40
44
|
relinka("success", `New ${configKind.toUpperCase()} configuration file has been created`);
|
|
41
45
|
} else {
|
|
@@ -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.108";
|
|
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.108";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
package/bin/app/config/create.js
CHANGED
|
@@ -145,7 +145,7 @@ export async function createRseConfig(projectPath, githubUsername, isDev, overri
|
|
|
145
145
|
let effectiveAuthorName = defaultRules?.projectAuthor ?? UNKNOWN_VALUE;
|
|
146
146
|
const effectiveDomain = defaultRules?.projectDomain ?? (effectiveProjectName === rseName ? cliDomainDocs : DEFAULT_DOMAIN);
|
|
147
147
|
if (effectiveAuthorName === "blefnk" && isDev) {
|
|
148
|
-
effectiveAuthorName = "
|
|
148
|
+
effectiveAuthorName = "reliverse";
|
|
149
149
|
}
|
|
150
150
|
await generateRseConfig({
|
|
151
151
|
projectName: effectiveProjectName,
|
|
@@ -180,7 +180,7 @@ export async function generateRseConfig({
|
|
|
180
180
|
}) {
|
|
181
181
|
const packageJson = await getPackageJson(projectPath);
|
|
182
182
|
if (frontendUsername === "blefnk" && isDev) {
|
|
183
|
-
frontendUsername = "
|
|
183
|
+
frontendUsername = "reliverse";
|
|
184
184
|
}
|
|
185
185
|
const defaultConfig = await getDefaultRseConfig(
|
|
186
186
|
projectPath,
|
|
@@ -29,7 +29,7 @@ export async function ensureReliverseConfig(isDev, configKind = DEFAULT_CONFIG_K
|
|
|
29
29
|
relinka("verbose", "Edit this file to customize build and publish settings");
|
|
30
30
|
if (!isDev) {
|
|
31
31
|
relinka("verbose", "Please note: commonPubPause is set to true by default");
|
|
32
|
-
relinka("verbose", "When you're ready, run `
|
|
32
|
+
relinka("verbose", "When you're ready, run `rse pub` to build and publish");
|
|
33
33
|
} else {
|
|
34
34
|
relinka("verbose", "When you're ready, run `bun pub` to build and publish");
|
|
35
35
|
}
|
|
@@ -5,9 +5,9 @@ import { rseSchema } from "./schema.js";
|
|
|
5
5
|
export async function loadrse(projectPath) {
|
|
6
6
|
const { config } = await loadConfig({
|
|
7
7
|
cwd: projectPath,
|
|
8
|
-
name: "
|
|
9
|
-
configFile: "
|
|
10
|
-
// will look for files like `
|
|
8
|
+
name: "reliverse",
|
|
9
|
+
configFile: "reliverse",
|
|
10
|
+
// will look for files like `reliverse.{ts,jsonc}`
|
|
11
11
|
rcFile: false,
|
|
12
12
|
packageJson: false,
|
|
13
13
|
dotenv: false,
|
|
@@ -28,7 +28,7 @@ ${errors.join("\n")}`);
|
|
|
28
28
|
export async function watchrse(projectPath, onUpdate) {
|
|
29
29
|
const watcher = await watchConfig({
|
|
30
30
|
cwd: projectPath,
|
|
31
|
-
name: "
|
|
31
|
+
name: "reliverse",
|
|
32
32
|
onUpdate({ newConfig, getDiff }) {
|
|
33
33
|
if (!Value.Check(rseSchema, newConfig)) {
|
|
34
34
|
return;
|
package/bin/app/mkdist/cmd.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DatabaseSchema: z.ZodEnum<{
|
|
3
3
|
none: "none";
|
|
4
|
-
postgres: "postgres";
|
|
5
|
-
sqlite: "sqlite";
|
|
6
4
|
mysql: "mysql";
|
|
5
|
+
sqlite: "sqlite";
|
|
7
6
|
mongodb: "mongodb";
|
|
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
12
|
drizzle: "drizzle";
|
|
13
|
-
prisma: "prisma";
|
|
14
13
|
mongoose: "mongoose";
|
|
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
|
-
express: "express";
|
|
21
|
-
fastify: "fastify";
|
|
22
20
|
next: "next";
|
|
23
|
-
elysia: "elysia";
|
|
24
21
|
convex: "convex";
|
|
22
|
+
elysia: "elysia";
|
|
23
|
+
express: "express";
|
|
24
|
+
fastify: "fastify";
|
|
25
25
|
}>;
|
|
26
26
|
export type Backend = z.infer<typeof BackendSchema>;
|
|
27
27
|
export declare const RuntimeSchema: z.ZodEnum<{
|
|
28
28
|
none: "none";
|
|
29
|
-
bun: "bun";
|
|
30
29
|
node: "node";
|
|
30
|
+
bun: "bun";
|
|
31
31
|
workers: "workers";
|
|
32
32
|
}>;
|
|
33
33
|
export type Runtime = z.infer<typeof RuntimeSchema>;
|
|
34
34
|
export declare const FrontendSchema: z.ZodEnum<{
|
|
35
35
|
none: "none";
|
|
36
36
|
svelte: "svelte";
|
|
37
|
+
nuxt: "nuxt";
|
|
38
|
+
solid: "solid";
|
|
37
39
|
next: "next";
|
|
38
|
-
"tanstack-router": "tanstack-router";
|
|
39
40
|
"react-router": "react-router";
|
|
41
|
+
"tanstack-router": "tanstack-router";
|
|
40
42
|
"tanstack-start": "tanstack-start";
|
|
41
|
-
nuxt: "nuxt";
|
|
42
43
|
"native-nativewind": "native-nativewind";
|
|
43
44
|
"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
|
-
pwa: "pwa";
|
|
51
50
|
tauri: "tauri";
|
|
52
51
|
starlight: "starlight";
|
|
53
|
-
husky: "husky";
|
|
54
52
|
turborepo: "turborepo";
|
|
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,15 +61,15 @@ 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
|
-
pnpm: "pnpm";
|
|
66
64
|
npm: "npm";
|
|
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<{
|
|
70
70
|
none: "none";
|
|
71
|
-
neon: "neon";
|
|
72
71
|
supabase: "supabase";
|
|
72
|
+
neon: "neon";
|
|
73
73
|
turso: "turso";
|
|
74
74
|
"prisma-postgres": "prisma-postgres";
|
|
75
75
|
"mongodb-atlas": "mongodb-atlas";
|
|
@@ -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: ("commands" | "webview" | "language" | "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: ("commands" | "webview" | "language" | "themes")[];
|
|
28
28
|
activation: "onCommand" | "onLanguage" | "startup";
|
|
29
29
|
publisher: string;
|
|
30
30
|
}>;
|
package/bin/app/pub/cmd.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { relinka } from "@reliverse/relinka";
|
|
1
2
|
import { defineArgs, defineCommand } from "@reliverse/rempts";
|
|
2
3
|
import { getConfigDler } from "../config/load.js";
|
|
3
|
-
import { ensureReliverseConfig } from "../config/prepare.js";
|
|
4
|
+
import { ensureReliverseConfig, prepareReliverseEnvironment } from "../config/prepare.js";
|
|
4
5
|
import { dlerPub } from "./impl.js";
|
|
5
6
|
export default defineCommand({
|
|
6
7
|
meta: {
|
|
@@ -14,7 +15,9 @@ export default defineCommand({
|
|
|
14
15
|
}
|
|
15
16
|
}),
|
|
16
17
|
async run({ args }) {
|
|
17
|
-
const isDev = args.dev
|
|
18
|
+
const isDev = args.dev;
|
|
19
|
+
await prepareReliverseEnvironment(isDev, "ts");
|
|
20
|
+
relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
|
|
18
21
|
await ensureReliverseConfig(isDev, "ts");
|
|
19
22
|
const config = await getConfigDler();
|
|
20
23
|
await dlerPub(isDev, config);
|
|
@@ -42,15 +42,7 @@ async function deleteVercelProjects(vercelInstance, memory, maxItems, token) {
|
|
|
42
42
|
}
|
|
43
43
|
const team = await getPrimaryVercelTeam(vercelInstance, memory);
|
|
44
44
|
const allProjects = await getVercelProjects(vercelInstance, maxItems, team);
|
|
45
|
-
const protectedNames = [
|
|
46
|
-
"relivator",
|
|
47
|
-
"rse",
|
|
48
|
-
"relidocs",
|
|
49
|
-
"versator",
|
|
50
|
-
"bleverse",
|
|
51
|
-
"mfpiano",
|
|
52
|
-
"blefnk"
|
|
53
|
-
];
|
|
45
|
+
const protectedNames = ["relivator", "relidocs", "versator", "bleverse", "blefnk"];
|
|
54
46
|
const projects = allProjects.filter((p) => !protectedNames.includes(p.name.toLowerCase()));
|
|
55
47
|
const projectNames = new Map(projects.map((p) => [p.id, p.name]));
|
|
56
48
|
const info = `If you do not see some projects, restart the CLI with a higher terminal height (current: ${maxItems})`;
|
|
@@ -14,14 +14,14 @@ declare const userDataSchema: import("@sinclair/typebox").TObject<{
|
|
|
14
14
|
vercelTeamSlug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
15
|
}>;
|
|
16
16
|
export declare const memorySchema: import("@sinclair/typebox").TObject<{
|
|
17
|
-
code: import("@sinclair/typebox").TString;
|
|
18
17
|
key: import("@sinclair/typebox").TString;
|
|
18
|
+
code: import("@sinclair/typebox").TString;
|
|
19
19
|
githubKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
20
|
vercelKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
21
|
openaiKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
22
22
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
23
|
githubUsername: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
25
|
vercelTeamId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
26
26
|
vercelTeamSlug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
27
27
|
}>;
|
package/bin/dler.js
CHANGED
|
@@ -18,19 +18,14 @@ import { default as updateCmd } from "./app/update/cmd.js";
|
|
|
18
18
|
import { default as upgradeCmd } from "./app/upgrade/cmd.js";
|
|
19
19
|
import { promptAggCommand } from "./app/utils/agg/agg-1.js";
|
|
20
20
|
const MENU_CMDS = ["agg", "build", "pub", "update"];
|
|
21
|
-
let isDev = process.env.DLER_DEV_MODE === "true";
|
|
22
21
|
const main = defineCommand({
|
|
23
22
|
meta: {
|
|
24
23
|
name: "dler",
|
|
25
|
-
version: "1.7.
|
|
24
|
+
version: "1.7.108",
|
|
26
25
|
description: `Displays dler's command menu.
|
|
27
26
|
To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
|
|
28
27
|
Available menu commands: ${MENU_CMDS.join(", ")}`
|
|
29
28
|
},
|
|
30
|
-
async onLauncherInit() {
|
|
31
|
-
await prepareReliverseEnvironment(isDev, "ts");
|
|
32
|
-
relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
|
|
33
|
-
},
|
|
34
29
|
args: defineArgs({
|
|
35
30
|
dev: {
|
|
36
31
|
type: "boolean",
|
|
@@ -48,7 +43,7 @@ Available menu commands: ${MENU_CMDS.join(", ")}`
|
|
|
48
43
|
}
|
|
49
44
|
}),
|
|
50
45
|
async run({ args }) {
|
|
51
|
-
isDev = args.dev;
|
|
46
|
+
const isDev = args.dev;
|
|
52
47
|
const isCI = process.env.CI === "true";
|
|
53
48
|
const isNonInteractive = !process.stdout.isTTY;
|
|
54
49
|
if (isCI || isNonInteractive) {
|
|
@@ -60,6 +55,8 @@ Available menu commands: ${MENU_CMDS.join(", ")}`
|
|
|
60
55
|
process.exit(0);
|
|
61
56
|
}
|
|
62
57
|
await showStartPrompt(isDev, false);
|
|
58
|
+
await prepareReliverseEnvironment(isDev, "ts");
|
|
59
|
+
relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
|
|
63
60
|
const cmdToRun = await selectPrompt({
|
|
64
61
|
title: "Select a command to run",
|
|
65
62
|
content: "Run 'dler --help' to see all available commands",
|
package/bin/mod.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export { default as path } from "@reliverse/pathkit";
|
|
2
|
-
export { re } from "@reliverse/relico";
|
|
3
|
-
export { default as fs } from "@reliverse/relifso";
|
|
4
|
-
export { relinka } from "@reliverse/relinka";
|
|
5
|
-
export { selectPrompt } from "@reliverse/rempts";
|
|
6
|
-
export { detectEnvironment } from "@reliverse/runtime";
|
|
7
1
|
export { useORPC } from "./app/add/add-local/api/orpc.js";
|
|
8
2
|
export { useTRPC } from "./app/add/add-local/api/trpc.js";
|
|
9
3
|
export { useBetterAuth } from "./app/add/add-local/auth/better-auth.js";
|
package/bin/mod.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export { default as path } from "@reliverse/pathkit";
|
|
2
|
-
export { re } from "@reliverse/relico";
|
|
3
|
-
export { default as fs } from "@reliverse/relifso";
|
|
4
|
-
export { relinka } from "@reliverse/relinka";
|
|
5
|
-
export { selectPrompt } from "@reliverse/rempts";
|
|
6
|
-
export { detectEnvironment } from "@reliverse/runtime";
|
|
7
1
|
export { useORPC } from "./app/add/add-local/api/orpc.js";
|
|
8
2
|
export { useTRPC } from "./app/add/add-local/api/trpc.js";
|
|
9
3
|
export { useBetterAuth } from "./app/add/add-local/auth/better-auth.js";
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@reliverse/bleump": "^1.1.6",
|
|
14
14
|
"@reliverse/pathkit": "^1.3.4",
|
|
15
15
|
"@reliverse/reglob": "^1.0.0",
|
|
16
|
-
"@reliverse/relico": "^1.3.
|
|
16
|
+
"@reliverse/relico": "^1.3.7",
|
|
17
17
|
"@reliverse/relifso": "^1.4.5",
|
|
18
18
|
"@reliverse/relinka": "^1.5.8",
|
|
19
19
|
"@reliverse/rempts": "^1.7.52",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"license": "MIT",
|
|
111
111
|
"name": "@reliverse/dler",
|
|
112
112
|
"type": "module",
|
|
113
|
-
"version": "1.7.
|
|
113
|
+
"version": "1.7.108",
|
|
114
114
|
"keywords": [
|
|
115
115
|
"reliverse",
|
|
116
116
|
"cli",
|