@reliverse/dler 1.7.130 → 1.7.131
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/build/impl.d.ts
CHANGED
|
@@ -5,7 +5,15 @@ import type { PerfTimer } from "../types/mod.js";
|
|
|
5
5
|
* Handles building for both main project and libraries.
|
|
6
6
|
* @see `src-ts/impl/pub/impl.ts` for pub main function implementation.
|
|
7
7
|
*/
|
|
8
|
-
export declare function dlerBuild(
|
|
8
|
+
export declare function dlerBuild({ flow, timer, isDev, config, debugOnlyCopyNonBuildFiles, debugDontCopyNonBuildFiles, disableOwnSpinner, }: {
|
|
9
|
+
flow: "build" | "pub";
|
|
10
|
+
timer: PerfTimer;
|
|
11
|
+
isDev: boolean;
|
|
12
|
+
config?: ReliverseConfig;
|
|
13
|
+
debugOnlyCopyNonBuildFiles?: boolean;
|
|
14
|
+
debugDontCopyNonBuildFiles?: boolean;
|
|
15
|
+
disableOwnSpinner?: boolean;
|
|
16
|
+
}): Promise<{
|
|
9
17
|
timer: PerfTimer;
|
|
10
18
|
effectiveConfig: any;
|
|
11
19
|
} | undefined>;
|
package/bin/impl/build/impl.js
CHANGED
|
@@ -12,7 +12,15 @@ import { handleDlerError } from "../utils/utils-error-cwd.js";
|
|
|
12
12
|
import { createCompletionTexts } from "../utils/finish-text.js";
|
|
13
13
|
import { dlerPostBuild, wrapper_CopyNonBuildFiles } from "./postbuild.js";
|
|
14
14
|
import { dlerPreBuild } from "./prebuild.js";
|
|
15
|
-
export async function dlerBuild(
|
|
15
|
+
export async function dlerBuild({
|
|
16
|
+
flow,
|
|
17
|
+
timer,
|
|
18
|
+
isDev,
|
|
19
|
+
config,
|
|
20
|
+
debugOnlyCopyNonBuildFiles,
|
|
21
|
+
debugDontCopyNonBuildFiles,
|
|
22
|
+
disableOwnSpinner
|
|
23
|
+
}) {
|
|
16
24
|
let effectiveConfig = config;
|
|
17
25
|
let shouldShowSpinner = false;
|
|
18
26
|
let multiStepSpinner = null;
|
|
@@ -77,11 +85,13 @@ export async function dlerBuild(timer, isDev, config, debugOnlyCopyNonBuildFiles
|
|
|
77
85
|
if (effectiveConfig.postBuildSettings?.deleteDistTmpAfterBuild) {
|
|
78
86
|
await fs.remove(path.join(PROJECT_ROOT, "dist-tmp"));
|
|
79
87
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
multiStepSpinner
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
if (flow === "build") {
|
|
89
|
+
const { plain, withEmoji } = await createCompletionTexts(effectiveConfig, timer, "build");
|
|
90
|
+
if (multiStepSpinner) {
|
|
91
|
+
multiStepSpinner.complete(plain);
|
|
92
|
+
} else {
|
|
93
|
+
relinka("success", withEmoji);
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
return { timer, effectiveConfig };
|
|
87
97
|
} catch (error) {
|
|
@@ -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.131";
|
|
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.131";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DatabaseSchema: z.ZodEnum<{
|
|
3
|
-
none: "none";
|
|
4
3
|
sqlite: "sqlite";
|
|
4
|
+
none: "none";
|
|
5
5
|
mysql: "mysql";
|
|
6
6
|
mongodb: "mongodb";
|
|
7
7
|
postgres: "postgres";
|
|
@@ -18,15 +18,15 @@ export declare const BackendSchema: z.ZodEnum<{
|
|
|
18
18
|
none: "none";
|
|
19
19
|
hono: "hono";
|
|
20
20
|
next: "next";
|
|
21
|
-
convex: "convex";
|
|
22
21
|
express: "express";
|
|
23
22
|
fastify: "fastify";
|
|
24
23
|
elysia: "elysia";
|
|
24
|
+
convex: "convex";
|
|
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
|
}>;
|
|
@@ -45,8 +45,8 @@ export declare const FrontendSchema: z.ZodEnum<{
|
|
|
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
51
|
starlight: "starlight";
|
|
52
52
|
turborepo: "turborepo";
|
|
@@ -55,8 +55,8 @@ export declare const AddonsSchema: z.ZodEnum<{
|
|
|
55
55
|
}>;
|
|
56
56
|
export type Addons = z.infer<typeof AddonsSchema>;
|
|
57
57
|
export declare const ExamplesSchema: z.ZodEnum<{
|
|
58
|
-
none: "none";
|
|
59
58
|
ai: "ai";
|
|
59
|
+
none: "none";
|
|
60
60
|
todo: "todo";
|
|
61
61
|
}>;
|
|
62
62
|
export type Examples = z.infer<typeof ExamplesSchema>;
|
package/bin/impl/pub/impl.js
CHANGED
|
@@ -41,15 +41,16 @@ export async function dlerPub(timer, isDev, config) {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
if (multiStepSpinner) multiStepSpinner.nextStep();
|
|
44
|
-
const { effectiveConfig: buildConfig } = await dlerBuild(
|
|
44
|
+
const { effectiveConfig: buildConfig } = await dlerBuild({
|
|
45
|
+
flow: "pub",
|
|
45
46
|
timer,
|
|
46
47
|
isDev,
|
|
47
|
-
effectiveConfig,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
config: effectiveConfig,
|
|
49
|
+
debugOnlyCopyNonBuildFiles: false,
|
|
50
|
+
debugDontCopyNonBuildFiles: false,
|
|
51
|
+
disableOwnSpinner: true
|
|
51
52
|
// disable build's spinner if pub is showing one
|
|
52
|
-
);
|
|
53
|
+
});
|
|
53
54
|
if (multiStepSpinner) multiStepSpinner.nextStep();
|
|
54
55
|
if (effectiveConfig.commonPubPause) {
|
|
55
56
|
await finalizeBuild(shouldShowSpinner, timer, effectiveConfig.commonPubPause, "pub");
|