@reliverse/dler 1.7.124 → 1.7.125
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/impl/auth/impl/init.d.ts +1 -1
- package/bin/impl/build/impl.d.ts +1 -1
- package/bin/impl/config/constants.d.ts +1 -1
- package/bin/impl/config/constants.js +1 -1
- package/bin/impl/config/def-utils.js +3 -3
- package/bin/impl/config/detect.js +1 -1
- package/bin/impl/config/prepare.js +1 -1
- package/bin/impl/init/mm-deprecated/drizzle/manageDrizzleSchema.js +1 -1
- package/bin/impl/init/mm-deprecated/feature-add.js +2 -2
- package/bin/impl/init/mm-deprecated/feature-rm.js +5 -5
- package/bin/impl/init/use-template/cp-impl.js +1 -1
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/git.js +1 -3
- package/bin/impl/migrate/codemods/anything-bun.js +1 -1
- package/bin/impl/providers/better-t-stack/packed/addons.js +1 -1
- package/bin/impl/providers/better-t-stack/packed/api.js +2 -2
- package/bin/impl/providers/better-t-stack/packed/auth.js +3 -3
- package/bin/impl/providers/better-t-stack/packed/backend.js +1 -1
- package/bin/impl/providers/better-t-stack/packed/examples.js +3 -3
- package/bin/impl/providers/better-t-stack/packed/frontend.js +6 -6
- package/bin/impl/providers/better-t-stack/types.d.ts +9 -9
- package/bin/impl/providers/reliverse-stack/rs-impl.d.ts +2 -2
- package/bin/impl/pub/impl.d.ts +1 -1
- package/bin/impl/rempts/cmd.js +7 -7
- package/bin/impl/utils/agg/agg-3.js +1 -1
- package/bin/impl/utils/downloading/downloadI18nFiles.js +4 -4
- package/bin/impl/utils/prompts/askUsernameFrontend.js +1 -2
- package/package.json +2 -2
|
@@ -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";
|
package/bin/impl/build/impl.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { PerfTimer } from "../types/mod.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Main entry point for the rse build process.
|
|
5
5
|
* Handles building for both main project and libraries.
|
|
6
|
-
* @see `src-ts/
|
|
6
|
+
* @see `src-ts/impl/pub/impl.ts` for pub main function implementation.
|
|
7
7
|
*/
|
|
8
8
|
export declare function dlerBuild(timer: PerfTimer, isDev: boolean, config?: ReliverseConfig, debugOnlyCopyNonBuildFiles?: boolean, debugDontCopyNonBuildFiles?: boolean, disableOwnSpinner?: boolean): Promise<{
|
|
9
9
|
timer: PerfTimer;
|
|
@@ -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.125";
|
|
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.125";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -83,10 +83,10 @@ export async function generateDefaultRulesForProject(projectPath, isDev) {
|
|
|
83
83
|
const hasPrismaFile = await fs.pathExists(path.join(projectPath, "prisma/schema.prisma"));
|
|
84
84
|
const hasDrizzleFile = await fs.pathExists(path.join(projectPath, "drizzle.config.ts"));
|
|
85
85
|
const hasNextAuthDir = await fs.pathExists(
|
|
86
|
-
path.join(projectPath, "src-ts/
|
|
86
|
+
path.join(projectPath, "src-ts/impl/api/auth/[...nextauth]")
|
|
87
87
|
);
|
|
88
88
|
const hasBetterAuthFile = await fs.pathExists(
|
|
89
|
-
path.join(projectPath, "src-ts/
|
|
89
|
+
path.join(projectPath, "src-ts/impl/api/auth/[...all]/route.ts")
|
|
90
90
|
);
|
|
91
91
|
const hasShadcnUi = await fs.pathExists(path.join(projectPath, "components/ui"));
|
|
92
92
|
const hasClerk = "@clerk/nextjs" in deps;
|
|
@@ -116,7 +116,7 @@ export async function generateDefaultRulesForProject(projectPath, isDev) {
|
|
|
116
116
|
const hasHono = "hono" in deps;
|
|
117
117
|
const hasTrpc = "@trpc/server" in deps;
|
|
118
118
|
const hasGraphql = "graphql" in deps || "apollo-server" in deps;
|
|
119
|
-
const hasRest = await fs.pathExists(path.join(projectPath, "src/api")) || await fs.pathExists(path.join(projectPath, "src-ts/
|
|
119
|
+
const hasRest = await fs.pathExists(path.join(projectPath, "src/api")) || await fs.pathExists(path.join(projectPath, "src-ts/impl/api"));
|
|
120
120
|
const hasPg = "pg" in deps || "@neondatabase/serverless" in deps;
|
|
121
121
|
const hasMysql = "mysql" in deps || "mysql2" in deps;
|
|
122
122
|
const hasSqlite = "sqlite" in deps || "sqlite3" in deps || "better-sqlite3" in deps;
|
|
@@ -190,7 +190,7 @@ export async function detectFeatures(projectPath, packageJson) {
|
|
|
190
190
|
const hasHono = "hono" in deps;
|
|
191
191
|
const hasTrpc = "@trpc/server" in deps;
|
|
192
192
|
const hasGraphql = "graphql" in deps || "apollo-server" in deps;
|
|
193
|
-
const hasRest = await fs.pathExists(path.join(projectPath, "src/api")) || await fs.pathExists(path.join(projectPath, "src-ts/
|
|
193
|
+
const hasRest = await fs.pathExists(path.join(projectPath, "src/api")) || await fs.pathExists(path.join(projectPath, "src-ts/impl/api"));
|
|
194
194
|
const hasEslint = "eslint" in deps;
|
|
195
195
|
const hasBiome = "@biomejs/biome" in deps;
|
|
196
196
|
const hasStripe = "stripe" in deps || "@stripe/stripe-js" in deps;
|
|
@@ -804,7 +804,7 @@ function getBumpFilter(isDev) {
|
|
|
804
804
|
return isDev ? `[
|
|
805
805
|
"package.json",
|
|
806
806
|
"reliverse.ts",
|
|
807
|
-
"src-ts/
|
|
807
|
+
"src-ts/impl/config/info.ts",
|
|
808
808
|
]` : `["package.json", "reliverse.ts"]`;
|
|
809
809
|
}
|
|
810
810
|
function getPublishArtifacts(isDev) {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
setupDrizzle
|
|
12
12
|
} from "./manageDrizzleSchemaUtils.js";
|
|
13
13
|
export async function manageDrizzleSchema(cwd, isDev) {
|
|
14
|
-
const singleSchemaDir = isDev ? path.join(cwd, "src-ts/
|
|
14
|
+
const singleSchemaDir = isDev ? path.join(cwd, "src-ts/impl/db") : path.join(cwd, "src/db");
|
|
15
15
|
const multiSchemaDir = path.join(singleSchemaDir, "schema");
|
|
16
16
|
let provider = await detectDatabaseProvider(cwd);
|
|
17
17
|
if (!provider) {
|
|
@@ -347,7 +347,7 @@ export const INTEGRATION_CONFIGS = {
|
|
|
347
347
|
} = authClient;`
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
|
-
path: "src-ts/
|
|
350
|
+
path: "src-ts/impl/auth/sign-in/page.tsx",
|
|
351
351
|
content: `"use client";
|
|
352
352
|
import { useState } from "react";
|
|
353
353
|
import { authClient } from "@/lib/auth-client";
|
|
@@ -430,7 +430,7 @@ export const INTEGRATION_CONFIGS = {
|
|
|
430
430
|
}`
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
|
-
path: "src-ts/
|
|
433
|
+
path: "src-ts/impl/auth/error/page.tsx",
|
|
434
434
|
content: `"use client";
|
|
435
435
|
import { useSearchParams } from "next/navigation";
|
|
436
436
|
export default function AuthErrorPage() {
|
|
@@ -29,11 +29,11 @@ export const REMOVAL_CONFIGS = {
|
|
|
29
29
|
files: [
|
|
30
30
|
"src/lib/auth.ts",
|
|
31
31
|
"src/lib/auth-client.ts",
|
|
32
|
-
"src-ts/
|
|
33
|
-
"src-ts/
|
|
32
|
+
"src-ts/impl/api/auth/[...nextauth]/route.ts",
|
|
33
|
+
"src-ts/impl/api/auth/[...all]/route.ts",
|
|
34
34
|
"middleware.ts"
|
|
35
35
|
],
|
|
36
|
-
directories: ["src-ts/
|
|
36
|
+
directories: ["src-ts/impl/api/auth"],
|
|
37
37
|
scripts: ["db:generate", "db:migrate"],
|
|
38
38
|
envVars: [
|
|
39
39
|
"NEXTAUTH_SECRET",
|
|
@@ -54,8 +54,8 @@ export const REMOVAL_CONFIGS = {
|
|
|
54
54
|
name: "Payments",
|
|
55
55
|
dependencies: ["stripe", "@polar-sh/sdk"],
|
|
56
56
|
devDependencies: [],
|
|
57
|
-
files: ["src/lib/stripe.ts", "src-ts/
|
|
58
|
-
directories: ["src-ts/
|
|
57
|
+
files: ["src/lib/stripe.ts", "src-ts/impl/api/stripe/webhook/route.ts"],
|
|
58
|
+
directories: ["src-ts/impl/api/stripe"],
|
|
59
59
|
scripts: [],
|
|
60
60
|
envVars: ["STRIPE_SECRET_KEY", "STRIPE_WEBHOOK_SECRET", "STRIPE_PRICE_ID", "POLAR_TOKEN"]
|
|
61
61
|
},
|
|
@@ -70,7 +70,7 @@ export async function initializeProjectConfig(projectName, _memory, config, skip
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
export async function setupI18nSupport(projectPath, config) {
|
|
73
|
-
const i18nFolderExists = await fs.pathExists(path.join(projectPath, "src-ts/
|
|
73
|
+
const i18nFolderExists = await fs.pathExists(path.join(projectPath, "src-ts/impl/[locale]")) || await fs.pathExists(path.join(projectPath, "src-ts/impl/[lang]"));
|
|
74
74
|
if (i18nFolderExists) {
|
|
75
75
|
relinka("verbose", "i18n is already enabled in the template. No changes needed.");
|
|
76
76
|
return true;
|
|
@@ -2,7 +2,7 @@ import path from "@reliverse/pathkit";
|
|
|
2
2
|
import { re } from "@reliverse/relico";
|
|
3
3
|
import fs from "@reliverse/relifso";
|
|
4
4
|
import { relinka } from "@reliverse/relinka";
|
|
5
|
-
import {
|
|
5
|
+
import { inputPrompt, selectPrompt } from "@reliverse/rempts";
|
|
6
6
|
import { simpleGit } from "simple-git";
|
|
7
7
|
import { cliName } from "../../../../config/constants.js";
|
|
8
8
|
import { getEffectiveDir } from "../../../../utils/getEffectiveDir.js";
|
|
@@ -39,7 +39,6 @@ export async function initializeGitRepo(git, alreadyGit, config, isTemplateDownl
|
|
|
39
39
|
}
|
|
40
40
|
if (!alreadyGit) {
|
|
41
41
|
await git.init();
|
|
42
|
-
deleteLastLine();
|
|
43
42
|
relinka("success", "Git repository initialized");
|
|
44
43
|
const branchName = config.repoBranch && config.repoBranch !== "main" ? config.repoBranch : "main";
|
|
45
44
|
try {
|
|
@@ -94,7 +93,6 @@ export async function initGitDir(params) {
|
|
|
94
93
|
params.projectPath
|
|
95
94
|
);
|
|
96
95
|
if (alreadyGit && params.allowReInit) {
|
|
97
|
-
deleteLastLine();
|
|
98
96
|
relinka("verbose", "Reinitializing existing git repository...");
|
|
99
97
|
if (!await removeGitDir(effectiveDir)) return false;
|
|
100
98
|
const git2 = simpleGit({ baseDir: effectiveDir });
|
|
@@ -397,7 +397,7 @@ compilerOptions = "tsconfig.json"
|
|
|
397
397
|
const generateDockerfile = (analysis) => {
|
|
398
398
|
return `# Use Bun's official image
|
|
399
399
|
FROM oven/bun:1 as base
|
|
400
|
-
WORKDIR /usr/src
|
|
400
|
+
WORKDIR /usr/src/app
|
|
401
401
|
# Install dependencies
|
|
402
402
|
COPY package.json bun.lock* ./
|
|
403
403
|
RUN bun install --frozen-lockfile
|
|
@@ -146,7 +146,7 @@ export const DLER_TPL_ADDONS = {
|
|
|
146
146
|
type: "binary",
|
|
147
147
|
binaryHash: "dee83fc2fb"
|
|
148
148
|
},
|
|
149
|
-
"addons/pwa/apps/web/next/src-ts/
|
|
149
|
+
"addons/pwa/apps/web/next/src-ts/impl/manifest.ts.hbs": {
|
|
150
150
|
metadata: {
|
|
151
151
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
152
152
|
updatedHash: "6f8734ebe6"
|
|
@@ -188,7 +188,7 @@ export const protectedProcedure = publicProcedure.use(requireAuth);
|
|
|
188
188
|
`,
|
|
189
189
|
type: "text"
|
|
190
190
|
},
|
|
191
|
-
"api/orpc/server/next/src-ts/
|
|
191
|
+
"api/orpc/server/next/src-ts/impl/rpc/[...all]/route.ts.hbs": {
|
|
192
192
|
metadata: {
|
|
193
193
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
194
194
|
updatedHash: "cdf4279672"
|
|
@@ -556,7 +556,7 @@ export const protectedProcedure = t.procedure.use(({ ctx, next }) => {
|
|
|
556
556
|
`,
|
|
557
557
|
type: "text"
|
|
558
558
|
},
|
|
559
|
-
"api/trpc/server/next/src-ts/
|
|
559
|
+
"api/trpc/server/next/src-ts/impl/trpc/[trpc]/route.ts": {
|
|
560
560
|
metadata: {
|
|
561
561
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
562
562
|
updatedHash: "1316017eae"
|
|
@@ -1403,7 +1403,7 @@ model Verification {
|
|
|
1403
1403
|
`,
|
|
1404
1404
|
type: "text"
|
|
1405
1405
|
},
|
|
1406
|
-
"auth/server/next/src-ts/
|
|
1406
|
+
"auth/server/next/src-ts/impl/api/auth/[...all]/route.ts": {
|
|
1407
1407
|
metadata: {
|
|
1408
1408
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
1409
1409
|
updatedHash: "1eeae5d0e3"
|
|
@@ -1727,7 +1727,7 @@ export const authClient = createAuthClient({
|
|
|
1727
1727
|
`,
|
|
1728
1728
|
type: "text"
|
|
1729
1729
|
},
|
|
1730
|
-
"auth/web/react/next/src-ts/
|
|
1730
|
+
"auth/web/react/next/src-ts/impl/dashboard/page.tsx.hbs": {
|
|
1731
1731
|
metadata: {
|
|
1732
1732
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
1733
1733
|
updatedHash: "354fab95c7"
|
|
@@ -1777,7 +1777,7 @@ export default function Dashboard() {
|
|
|
1777
1777
|
`,
|
|
1778
1778
|
type: "text"
|
|
1779
1779
|
},
|
|
1780
|
-
"auth/web/react/next/src-ts/
|
|
1780
|
+
"auth/web/react/next/src-ts/impl/login/page.tsx": {
|
|
1781
1781
|
metadata: {
|
|
1782
1782
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
1783
1783
|
updatedHash: "bdd103cc10"
|
|
@@ -486,7 +486,7 @@ export {};
|
|
|
486
486
|
`,
|
|
487
487
|
type: "text"
|
|
488
488
|
},
|
|
489
|
-
"examples/ai/server/next/src-ts/
|
|
489
|
+
"examples/ai/server/next/src-ts/impl/ai/route.ts": {
|
|
490
490
|
metadata: {
|
|
491
491
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
492
492
|
updatedHash: "eee0d6a73d"
|
|
@@ -569,7 +569,7 @@ function getMessageText(message: any) {
|
|
|
569
569
|
`,
|
|
570
570
|
type: "text"
|
|
571
571
|
},
|
|
572
|
-
"examples/ai/web/react/next/src-ts/
|
|
572
|
+
"examples/ai/web/react/next/src-ts/impl/ai/page.tsx": {
|
|
573
573
|
metadata: {
|
|
574
574
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
575
575
|
updatedHash: "0c366c76eb"
|
|
@@ -2058,7 +2058,7 @@ function handleDeleteTodo(id: number) {
|
|
|
2058
2058
|
`,
|
|
2059
2059
|
type: "text"
|
|
2060
2060
|
},
|
|
2061
|
-
"examples/todo/web/react/next/src-ts/
|
|
2061
|
+
"examples/todo/web/react/next/src-ts/impl/todos/page.tsx.hbs": {
|
|
2062
2062
|
metadata: {
|
|
2063
2063
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
2064
2064
|
updatedHash: "dbf393c2f2"
|
|
@@ -2678,7 +2678,7 @@ export default config;
|
|
|
2678
2678
|
`,
|
|
2679
2679
|
type: "text"
|
|
2680
2680
|
},
|
|
2681
|
-
"frontend/react/next/src
|
|
2681
|
+
"frontend/react/next/src/app/favicon.ico": {
|
|
2682
2682
|
metadata: {
|
|
2683
2683
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
2684
2684
|
updatedHash: "9ecfcc8f0e"
|
|
@@ -2687,7 +2687,7 @@ export default config;
|
|
|
2687
2687
|
type: "binary",
|
|
2688
2688
|
binaryHash: "9ecfcc8f0e"
|
|
2689
2689
|
},
|
|
2690
|
-
"frontend/react/next/src
|
|
2690
|
+
"frontend/react/next/src/app/layout.tsx.hbs": {
|
|
2691
2691
|
metadata: {
|
|
2692
2692
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
2693
2693
|
updatedHash: "2b199051ab"
|
|
@@ -2732,7 +2732,7 @@ export default function RootLayout({
|
|
|
2732
2732
|
`,
|
|
2733
2733
|
type: "text"
|
|
2734
2734
|
},
|
|
2735
|
-
"frontend/react/next/src
|
|
2735
|
+
"frontend/react/next/src/app/page.tsx.hbs": {
|
|
2736
2736
|
metadata: {
|
|
2737
2737
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
2738
2738
|
updatedHash: "78e7e7eea2"
|
|
@@ -5742,7 +5742,7 @@ dist-ssr
|
|
|
5742
5742
|
},
|
|
5743
5743
|
type: "json"
|
|
5744
5744
|
},
|
|
5745
|
-
"frontend/svelte/src
|
|
5745
|
+
"frontend/svelte/src/app.css": {
|
|
5746
5746
|
metadata: {
|
|
5747
5747
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
5748
5748
|
updatedHash: "2b911b4424"
|
|
@@ -5754,7 +5754,7 @@ body {
|
|
|
5754
5754
|
`,
|
|
5755
5755
|
type: "text"
|
|
5756
5756
|
},
|
|
5757
|
-
"frontend/svelte/src
|
|
5757
|
+
"frontend/svelte/src/app.d.ts": {
|
|
5758
5758
|
metadata: {
|
|
5759
5759
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
5760
5760
|
updatedHash: "2f59b5d092"
|
|
@@ -5774,7 +5774,7 @@ export {};
|
|
|
5774
5774
|
`,
|
|
5775
5775
|
type: "text"
|
|
5776
5776
|
},
|
|
5777
|
-
"frontend/svelte/src
|
|
5777
|
+
"frontend/svelte/src/app.html": {
|
|
5778
5778
|
metadata: {
|
|
5779
5779
|
updatedAt: "2025-06-17T06:06:35.000Z",
|
|
5780
5780
|
updatedHash: "f980132c60"
|
|
@@ -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
|
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
|
+
next: "next";
|
|
21
|
+
convex: "convex";
|
|
20
22
|
express: "express";
|
|
21
23
|
fastify: "fastify";
|
|
22
|
-
next: "next";
|
|
23
24
|
elysia: "elysia";
|
|
24
|
-
convex: "convex";
|
|
25
25
|
}>;
|
|
26
26
|
export type Backend = z.infer<typeof BackendSchema>;
|
|
27
27
|
export declare const RuntimeSchema: z.ZodEnum<{
|
|
@@ -34,12 +34,12 @@ 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";
|
|
37
38
|
solid: "solid";
|
|
38
39
|
next: "next";
|
|
39
|
-
"tanstack-router": "tanstack-router";
|
|
40
40
|
"react-router": "react-router";
|
|
41
|
+
"tanstack-router": "tanstack-router";
|
|
41
42
|
"tanstack-start": "tanstack-start";
|
|
42
|
-
nuxt: "nuxt";
|
|
43
43
|
"native-nativewind": "native-nativewind";
|
|
44
44
|
"native-unistyles": "native-unistyles";
|
|
45
45
|
}>;
|
|
@@ -47,11 +47,11 @@ 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
|
+
husky: "husky";
|
|
54
|
+
pwa: "pwa";
|
|
55
55
|
}>;
|
|
56
56
|
export type Addons = z.infer<typeof AddonsSchema>;
|
|
57
57
|
export declare const ExamplesSchema: z.ZodEnum<{
|
|
@@ -69,8 +69,8 @@ export type PackageManager = z.infer<typeof PackageManagerSchema>;
|
|
|
69
69
|
export declare const DatabaseSetupSchema: z.ZodEnum<{
|
|
70
70
|
none: "none";
|
|
71
71
|
supabase: "supabase";
|
|
72
|
-
turso: "turso";
|
|
73
72
|
neon: "neon";
|
|
73
|
+
turso: "turso";
|
|
74
74
|
"prisma-postgres": "prisma-postgres";
|
|
75
75
|
"mongodb-atlas": "mongodb-atlas";
|
|
76
76
|
}>;
|
|
@@ -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/impl/pub/impl.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import type { PerfTimer } from "../types/mod.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Main entry point for the rse build and publish process.
|
|
5
5
|
* Handles building and publishing for both main project and libraries.
|
|
6
|
-
* @see `src-ts/
|
|
6
|
+
* @see `src-ts/impl/build/impl.ts` for build main function implementation.
|
|
7
7
|
*/
|
|
8
8
|
export declare function dlerPub(timer: PerfTimer, isDev: boolean, config?: ReliverseConfig): Promise<void>;
|
package/bin/impl/rempts/cmd.js
CHANGED
|
@@ -4,7 +4,7 @@ import { relinka } from "@reliverse/relinka";
|
|
|
4
4
|
import { createJiti } from "jiti";
|
|
5
5
|
export async function handleReliverseConfig() {
|
|
6
6
|
const dlerConfigPath = path.resolve("reliverse.ts");
|
|
7
|
-
let cmdsRoot = "src
|
|
7
|
+
let cmdsRoot = "src/app";
|
|
8
8
|
let cliFilePath = "";
|
|
9
9
|
try {
|
|
10
10
|
const jiti = createJiti(import.meta.url);
|
|
@@ -14,7 +14,7 @@ export async function handleReliverseConfig() {
|
|
|
14
14
|
const coreIsCLI = dlerConfig?.coreIsCLI;
|
|
15
15
|
if (!coreIsCLI?.enabled || !coreIsCLI?.scripts) {
|
|
16
16
|
cliFilePath = await ensureCliFile("src/cli.ts");
|
|
17
|
-
cmdsRoot = "src
|
|
17
|
+
cmdsRoot = "src/app";
|
|
18
18
|
} else {
|
|
19
19
|
const firstScript = Object.values(coreIsCLI.scripts)[0];
|
|
20
20
|
const scriptPath = path.resolve(firstScript);
|
|
@@ -29,16 +29,16 @@ export async function handleReliverseConfig() {
|
|
|
29
29
|
}
|
|
30
30
|
} else {
|
|
31
31
|
relinka("warn", `${scriptPath} doesn't use @reliverse/rempts`);
|
|
32
|
-
cmdsRoot = "src
|
|
32
|
+
cmdsRoot = "src/app";
|
|
33
33
|
}
|
|
34
34
|
} else {
|
|
35
35
|
cliFilePath = await ensureCliFile(scriptPath);
|
|
36
|
-
cmdsRoot = "src
|
|
36
|
+
cmdsRoot = "src/app";
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
} catch {
|
|
40
40
|
cliFilePath = await ensureCliFile("src/cli.ts");
|
|
41
|
-
cmdsRoot = "src
|
|
41
|
+
cmdsRoot = "src/app";
|
|
42
42
|
}
|
|
43
43
|
return { cmdsRoot: path.resolve(cmdsRoot), cliFile: cliFilePath };
|
|
44
44
|
}
|
|
@@ -75,7 +75,7 @@ export async function findCommandDirs(root) {
|
|
|
75
75
|
export async function generateCommandArgsMap(cmdDirs) {
|
|
76
76
|
let interfaceContent = "// Argument types for each command based on their defineArgs\ninterface CommandArgsMap {\n";
|
|
77
77
|
for (const dir of cmdDirs) {
|
|
78
|
-
const cmdPath = path.join("src
|
|
78
|
+
const cmdPath = path.join("src/app", dir, "cmd.ts");
|
|
79
79
|
try {
|
|
80
80
|
if (await fs.pathExists(cmdPath)) {
|
|
81
81
|
const content = await fs.readFile(cmdPath, "utf-8");
|
|
@@ -254,7 +254,7 @@ const cliTemplate = `import { defineCommand, runMain } from "@reliverse/rempts";
|
|
|
254
254
|
await runMain(
|
|
255
255
|
defineCommand({
|
|
256
256
|
// empty object activates file-based
|
|
257
|
-
// commands in the src
|
|
257
|
+
// commands in the src/app directory
|
|
258
258
|
}),
|
|
259
259
|
);
|
|
260
260
|
`;
|
|
@@ -186,7 +186,7 @@ export function printUsage(isDev) {
|
|
|
186
186
|
if (isDev) {
|
|
187
187
|
relinka(
|
|
188
188
|
"log",
|
|
189
|
-
"bun dev:tools agg --input src-ts/
|
|
189
|
+
"bun dev:tools agg --input src-ts/impl --out src-ts/mod.ts --recursive --named --strip src-ts/impl"
|
|
190
190
|
);
|
|
191
191
|
} else {
|
|
192
192
|
relinka(
|
|
@@ -3,8 +3,8 @@ import fs, { ensuredir } from "@reliverse/relifso";
|
|
|
3
3
|
import { relinka } from "@reliverse/relinka";
|
|
4
4
|
async function isI18nAlreadySetup(projectPath) {
|
|
5
5
|
const checkPaths = [
|
|
6
|
-
"src-ts/
|
|
7
|
-
"src-ts/
|
|
6
|
+
"src-ts/impl/[locale]",
|
|
7
|
+
"src-ts/impl/[lang]",
|
|
8
8
|
"src/i18n",
|
|
9
9
|
"src/locales",
|
|
10
10
|
"src/translations",
|
|
@@ -25,7 +25,7 @@ export async function setupI18nFiles(projectPath) {
|
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
await ensuredir(projectPath);
|
|
28
|
-
const layoutPath = path.join(projectPath, "src-ts/
|
|
28
|
+
const layoutPath = path.join(projectPath, "src-ts/impl/layout.tsx");
|
|
29
29
|
if (!await fs.pathExists(layoutPath)) {
|
|
30
30
|
await ensuredir(path.dirname(layoutPath));
|
|
31
31
|
const layoutContent = `
|
|
@@ -58,7 +58,7 @@ export function generateStaticParams() {
|
|
|
58
58
|
await fs.writeFile(layoutPath, layoutContent);
|
|
59
59
|
relinka("success", "Generated i18n layout file");
|
|
60
60
|
}
|
|
61
|
-
const pagePath = path.join(projectPath, "src-ts/
|
|
61
|
+
const pagePath = path.join(projectPath, "src-ts/impl/page.tsx");
|
|
62
62
|
if (!await fs.pathExists(pagePath)) {
|
|
63
63
|
const pageContent = `
|
|
64
64
|
import { useTranslation } from "../i18n";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { re } from "@reliverse/relico";
|
|
2
|
-
import {
|
|
2
|
+
import { inputPrompt } from "@reliverse/rempts";
|
|
3
3
|
import { DEFAULT_CLI_USERNAME } from "../../config/constants.js";
|
|
4
4
|
import { updateReliverseConfig } from "../../config/update.js";
|
|
5
5
|
export async function askUsernameFrontend(config, shouldAskIfExists) {
|
|
@@ -21,7 +21,6 @@ export async function askUsernameFrontend(config, shouldAskIfExists) {
|
|
|
21
21
|
return previousName;
|
|
22
22
|
}
|
|
23
23
|
await updateReliverseConfig(process.cwd(), { projectAuthor: DEFAULT_CLI_USERNAME }, false);
|
|
24
|
-
deleteLastLine();
|
|
25
24
|
return DEFAULT_CLI_USERNAME;
|
|
26
25
|
}
|
|
27
26
|
await updateReliverseConfig(process.cwd(), { projectAuthor: trimmedInput }, false);
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
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.
|
|
16
|
+
"@reliverse/bleump": "^1.1.7",
|
|
17
17
|
"@reliverse/pathkit": "^1.3.4",
|
|
18
18
|
"@reliverse/reglob": "^1.0.0",
|
|
19
19
|
"@reliverse/relico": "^1.3.9",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"license": "MIT",
|
|
124
124
|
"name": "@reliverse/dler",
|
|
125
125
|
"type": "module",
|
|
126
|
-
"version": "1.7.
|
|
126
|
+
"version": "1.7.125",
|
|
127
127
|
"author": "reliverse",
|
|
128
128
|
"bugs": {
|
|
129
129
|
"email": "blefnk@gmail.com",
|