@reliverse/dler 1.7.109 → 1.7.111
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 +4 -1
- package/bin/app/build/impl.d.ts +3 -3
- package/bin/app/build/impl.js +1 -3
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/mkdist/cmd.js +3 -1
- package/bin/app/providers/better-t-stack/types.d.ts +11 -11
- package/bin/app/pub/cmd.js +3 -1
- package/bin/app/pub/impl.d.ts +2 -2
- package/bin/app/pub/impl.js +3 -2
- package/bin/app/utils/schemaMemory.d.ts +2 -2
- package/bin/dler.js +1 -1
- package/bin/mod.d.ts +2 -0
- package/bin/mod.js +2 -0
- package/package.json +5 -5
package/bin/app/build/cmd.js
CHANGED
|
@@ -4,6 +4,7 @@ import { dlerBuild } from "./impl.js";
|
|
|
4
4
|
import { getConfigDler } from "../config/load.js";
|
|
5
5
|
import { finalizeBuild } from "../utils/finalize.js";
|
|
6
6
|
import { prepareReliverseEnvironment } from "../config/prepare.js";
|
|
7
|
+
import { createPerfTimer } from "../utils/utils-perf.js";
|
|
7
8
|
export default defineCommand({
|
|
8
9
|
meta: {
|
|
9
10
|
name: "build",
|
|
@@ -28,7 +29,9 @@ export default defineCommand({
|
|
|
28
29
|
await prepareReliverseEnvironment(isDev, "ts");
|
|
29
30
|
relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
|
|
30
31
|
const config = await getConfigDler();
|
|
31
|
-
const
|
|
32
|
+
const timer = createPerfTimer();
|
|
33
|
+
await dlerBuild(
|
|
34
|
+
timer,
|
|
32
35
|
isDev,
|
|
33
36
|
config,
|
|
34
37
|
args.debugOnlyCopyNonBuildFiles,
|
package/bin/app/build/impl.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { DlerConfig } from "../types/mod.js";
|
|
1
|
+
import type { DlerConfig, PerfTimer } from "../types/mod.js";
|
|
2
2
|
/**
|
|
3
3
|
* Main entry point for the dler build process.
|
|
4
4
|
* Handles building for both main project and libraries.
|
|
5
5
|
* @see `src-ts/app/pub/impl.ts` for pub main function implementation.
|
|
6
6
|
*/
|
|
7
|
-
export declare function dlerBuild(isDev: boolean, config?: DlerConfig, debugOnlyCopyNonBuildFiles?: boolean, debugDontCopyNonBuildFiles?: boolean, disableOwnSpinner?: boolean): Promise<{
|
|
8
|
-
timer:
|
|
7
|
+
export declare function dlerBuild(timer: PerfTimer, isDev: boolean, config?: DlerConfig, debugOnlyCopyNonBuildFiles?: boolean, debugDontCopyNonBuildFiles?: boolean, disableOwnSpinner?: boolean): Promise<{
|
|
8
|
+
timer: PerfTimer;
|
|
9
9
|
effectiveConfig: any;
|
|
10
10
|
} | undefined>;
|
package/bin/app/build/impl.js
CHANGED
|
@@ -8,11 +8,9 @@ import { getConfigDler } from "../config/load.js";
|
|
|
8
8
|
import { createSpinner } from "../utils/spinner.js";
|
|
9
9
|
import { removeDistFolders } from "../utils/utils-clean.js";
|
|
10
10
|
import { handleDlerError } from "../utils/utils-error-cwd.js";
|
|
11
|
-
import { createPerfTimer } from "../utils/utils-perf.js";
|
|
12
11
|
import { dlerPostBuild, wrapper_CopyNonBuildFiles } from "./postbuild.js";
|
|
13
12
|
import { dlerPreBuild } from "./prebuild.js";
|
|
14
|
-
export async function dlerBuild(isDev, config, debugOnlyCopyNonBuildFiles, debugDontCopyNonBuildFiles, disableOwnSpinner) {
|
|
15
|
-
const timer = createPerfTimer();
|
|
13
|
+
export async function dlerBuild(timer, isDev, config, debugOnlyCopyNonBuildFiles, debugDontCopyNonBuildFiles, disableOwnSpinner) {
|
|
16
14
|
let effectiveConfig = config;
|
|
17
15
|
let shouldShowSpinner = false;
|
|
18
16
|
let spinner = null;
|
|
@@ -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.111";
|
|
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.111";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
package/bin/app/mkdist/cmd.js
CHANGED
|
@@ -3,6 +3,7 @@ import { defineArgs, defineCommand } from "@reliverse/rempts";
|
|
|
3
3
|
import { dlerBuild } from "../build/impl.js";
|
|
4
4
|
import { mkdist } from "../build/providers/mkdist/mkdist-impl/make.js";
|
|
5
5
|
import { ensureReliverseConfig } from "../config/prepare.js";
|
|
6
|
+
import { createPerfTimer } from "../utils/utils-perf.js";
|
|
6
7
|
export default defineCommand({
|
|
7
8
|
meta: {
|
|
8
9
|
name: "mkdist",
|
|
@@ -115,6 +116,7 @@ export default defineCommand({
|
|
|
115
116
|
process.exit(0);
|
|
116
117
|
}
|
|
117
118
|
await ensureReliverseConfig(isDev, "ts");
|
|
118
|
-
|
|
119
|
+
const timer = createPerfTimer();
|
|
120
|
+
await dlerBuild(timer, isDev);
|
|
119
121
|
}
|
|
120
122
|
});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DatabaseSchema: z.ZodEnum<{
|
|
3
|
-
sqlite: "sqlite";
|
|
4
3
|
none: "none";
|
|
4
|
+
sqlite: "sqlite";
|
|
5
|
+
postgres: "postgres";
|
|
5
6
|
mysql: "mysql";
|
|
6
7
|
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
|
-
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
|
-
next: "next";
|
|
21
20
|
express: "express";
|
|
22
21
|
fastify: "fastify";
|
|
22
|
+
next: "next";
|
|
23
23
|
elysia: "elysia";
|
|
24
24
|
convex: "convex";
|
|
25
25
|
}>;
|
|
@@ -37,21 +37,21 @@ export declare const FrontendSchema: z.ZodEnum<{
|
|
|
37
37
|
nuxt: "nuxt";
|
|
38
38
|
solid: "solid";
|
|
39
39
|
next: "next";
|
|
40
|
-
"react-router": "react-router";
|
|
41
40
|
"tanstack-router": "tanstack-router";
|
|
41
|
+
"react-router": "react-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";
|
|
49
|
+
none: "none";
|
|
50
50
|
tauri: "tauri";
|
|
51
|
-
starlight: "starlight";
|
|
52
51
|
turborepo: "turborepo";
|
|
53
|
-
husky: "husky";
|
|
54
52
|
pwa: "pwa";
|
|
53
|
+
starlight: "starlight";
|
|
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";
|
|
64
65
|
npm: "npm";
|
|
65
66
|
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
|
-
supabase: "supabase";
|
|
72
71
|
neon: "neon";
|
|
72
|
+
supabase: "supabase";
|
|
73
73
|
turso: "turso";
|
|
74
74
|
"prisma-postgres": "prisma-postgres";
|
|
75
75
|
"mongodb-atlas": "mongodb-atlas";
|
package/bin/app/pub/cmd.js
CHANGED
|
@@ -3,6 +3,7 @@ import { defineArgs, defineCommand } from "@reliverse/rempts";
|
|
|
3
3
|
import { getConfigDler } from "../config/load.js";
|
|
4
4
|
import { ensureReliverseConfig, prepareReliverseEnvironment } from "../config/prepare.js";
|
|
5
5
|
import { dlerPub } from "./impl.js";
|
|
6
|
+
import { createPerfTimer } from "../utils/utils-perf.js";
|
|
6
7
|
export default defineCommand({
|
|
7
8
|
meta: {
|
|
8
9
|
name: "pub",
|
|
@@ -20,6 +21,7 @@ export default defineCommand({
|
|
|
20
21
|
relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
|
|
21
22
|
await ensureReliverseConfig(isDev, "ts");
|
|
22
23
|
const config = await getConfigDler();
|
|
23
|
-
|
|
24
|
+
const timer = createPerfTimer();
|
|
25
|
+
await dlerPub(timer, isDev, config);
|
|
24
26
|
}
|
|
25
27
|
});
|
package/bin/app/pub/impl.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { DlerConfig } from "../types/mod.js";
|
|
1
|
+
import type { DlerConfig, PerfTimer } from "../types/mod.js";
|
|
2
2
|
/**
|
|
3
3
|
* Main entry point for the dler build and publish process.
|
|
4
4
|
* Handles building and publishing for both main project and libraries.
|
|
5
5
|
* @see `src-ts/app/build/impl.ts` for build main function implementation.
|
|
6
6
|
*/
|
|
7
|
-
export declare function dlerPub(isDev: boolean, config?: DlerConfig): Promise<void>;
|
|
7
|
+
export declare function dlerPub(timer: PerfTimer, isDev: boolean, config?: DlerConfig): Promise<void>;
|
package/bin/app/pub/impl.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getConfigDler } from "../config/load.js";
|
|
|
6
6
|
import { finalizeBuild, finalizePub } from "../utils/finalize.js";
|
|
7
7
|
import { createSpinner } from "../utils/spinner.js";
|
|
8
8
|
import { handleDlerError } from "../utils/utils-error-cwd.js";
|
|
9
|
-
export async function dlerPub(isDev, config) {
|
|
9
|
+
export async function dlerPub(timer, isDev, config) {
|
|
10
10
|
let effectiveConfig = config;
|
|
11
11
|
let shouldShowSpinner = false;
|
|
12
12
|
let spinner = null;
|
|
@@ -30,7 +30,8 @@ export async function dlerPub(isDev, config) {
|
|
|
30
30
|
throw new Error("[reliverse.ts] Failed to set bumpDisable to true");
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
const {
|
|
33
|
+
const { effectiveConfig: buildConfig } = await dlerBuild(
|
|
34
|
+
timer,
|
|
34
35
|
isDev,
|
|
35
36
|
effectiveConfig,
|
|
36
37
|
void 0,
|
|
@@ -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
|
-
key: import("@sinclair/typebox").TString;
|
|
18
17
|
code: import("@sinclair/typebox").TString;
|
|
18
|
+
key: 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
|
-
githubUsername: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
23
|
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
githubUsername: 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
|
@@ -21,7 +21,7 @@ const MENU_CMDS = ["agg", "build", "pub", "update"];
|
|
|
21
21
|
const main = defineCommand({
|
|
22
22
|
meta: {
|
|
23
23
|
name: "dler",
|
|
24
|
-
version: "1.7.
|
|
24
|
+
version: "1.7.111",
|
|
25
25
|
description: `Displays dler's command menu.
|
|
26
26
|
To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
|
|
27
27
|
Available menu commands: ${MENU_CMDS.join(", ")}`
|
package/bin/mod.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export { aiMenu } from "./app/ai/ai-menu.js";
|
|
|
49
49
|
export type { LibraryBuildOptions } from "./app/build/build-library.js";
|
|
50
50
|
export { library_buildLibrary } from "./app/build/build-library.js";
|
|
51
51
|
export { regular_buildJsrDist, regular_buildNpmDist } from "./app/build/build-regular.js";
|
|
52
|
+
export { dlerBuild } from "./app/build/impl.js";
|
|
52
53
|
export { libraries_build, libraries_publish, library_buildFlow, library_pubFlow, } from "./app/build/library-flow.js";
|
|
53
54
|
export { autoPreset, definePreset } from "./app/build/providers/auto.js";
|
|
54
55
|
export { unifiedBuild } from "./app/build/providers/build.js";
|
|
@@ -155,6 +156,7 @@ export { applyMagicSpells, getAllAvailableRegistries, getFilesWithMagicSpells, p
|
|
|
155
156
|
export type { SpellDirective, SpellEvaluationContext, SpellInfo, SpellOutcome, } from "./app/magic/magic-spells.js";
|
|
156
157
|
export { evaluateMagicDirective, getAvailableSpells } from "./app/magic/magic-spells.js";
|
|
157
158
|
export { downloadFileFromGitHub, ensureEnvCacheDir, getEnvCacheDir, getEnvCachePath, logVerbose, mrseVerbose, } from "./app/mrse/mrse-impl.js";
|
|
159
|
+
export { dlerPub } from "./app/pub/impl.js";
|
|
158
160
|
export { library_publishLibrary } from "./app/pub/pub-library.js";
|
|
159
161
|
export { regular_pubToJsr, regular_pubToNpm } from "./app/pub/pub-regular.js";
|
|
160
162
|
export { checkDlerConfigHealth } from "./app/rules/reliverse/dler-config-health/dler-config-health.js";
|
package/bin/mod.js
CHANGED
|
@@ -82,6 +82,7 @@ export {
|
|
|
82
82
|
export { aiMenu } from "./app/ai/ai-menu.js";
|
|
83
83
|
export { library_buildLibrary } from "./app/build/build-library.js";
|
|
84
84
|
export { regular_buildJsrDist, regular_buildNpmDist } from "./app/build/build-regular.js";
|
|
85
|
+
export { dlerBuild } from "./app/build/impl.js";
|
|
85
86
|
export {
|
|
86
87
|
libraries_build,
|
|
87
88
|
libraries_publish,
|
|
@@ -417,6 +418,7 @@ export {
|
|
|
417
418
|
logVerbose,
|
|
418
419
|
mrseVerbose
|
|
419
420
|
} from "./app/mrse/mrse-impl.js";
|
|
421
|
+
export { dlerPub } from "./app/pub/impl.js";
|
|
420
422
|
export { library_publishLibrary } from "./app/pub/pub-library.js";
|
|
421
423
|
export { regular_pubToJsr, regular_pubToNpm } from "./app/pub/pub-regular.js";
|
|
422
424
|
export { checkDlerConfigHealth } from "./app/rules/reliverse/dler-config-health/dler-config-health.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@ai-sdk/openai": "^2.0.
|
|
3
|
+
"@ai-sdk/openai": "^2.0.20",
|
|
4
4
|
"@hookform/resolvers": "^5.2.1",
|
|
5
5
|
"@libsql/client": "^0.15.12",
|
|
6
6
|
"@mendable/firecrawl-js": "^3.2.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@sinclair/typebox": "^0.34.40",
|
|
28
28
|
"@uploadcare/upload-client": "^6.17.0",
|
|
29
29
|
"@vercel/sdk": "^1.10.6",
|
|
30
|
-
"ai": "^5.0.
|
|
30
|
+
"ai": "^5.0.23",
|
|
31
31
|
"async-listen": "^3.1.0",
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
33
|
"better-auth": "^1.3.7",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"destr": "^2.0.5",
|
|
43
43
|
"detect-package-manager": "^3.0.2",
|
|
44
44
|
"dotenv": "^17.2.1",
|
|
45
|
-
"drizzle-orm": "^0.44.
|
|
45
|
+
"drizzle-orm": "^0.44.5",
|
|
46
46
|
"enquirer": "^2.4.1",
|
|
47
47
|
"esbuild": "^0.25.9",
|
|
48
48
|
"escape-string-regexp": "^5.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"react-hook-form": "^7.62.0",
|
|
87
87
|
"registry-auth-token": "^5.1.0",
|
|
88
88
|
"registry-url": "^7.2.0",
|
|
89
|
-
"rollup": "^4.48.
|
|
89
|
+
"rollup": "^4.48.1",
|
|
90
90
|
"rollup-plugin-dts": "^6.2.3",
|
|
91
91
|
"scule": "^1.3.0",
|
|
92
92
|
"semver": "^7.7.2",
|
|
@@ -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.111",
|
|
114
114
|
"keywords": [
|
|
115
115
|
"reliverse",
|
|
116
116
|
"cli",
|