@reliverse/dler 1.7.126 → 1.7.128
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/config/constants.d.ts +1 -1
- package/bin/impl/config/constants.js +1 -1
- package/bin/impl/providers/better-t-stack/types.d.ts +3 -3
- package/bin/impl/pub/impl.js +29 -2
- package/bin/impl/utils/startEndPrompts.d.ts +1 -1
- package/bin/impl/utils/startEndPrompts.js +18 -10
- package/bin/mod.d.ts +1 -1
- package/bin/mod.js +1 -1
- package/package.json +1 -1
|
@@ -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.128";
|
|
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.128";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -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";
|
|
21
22
|
express: "express";
|
|
22
23
|
fastify: "fastify";
|
|
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<{
|
|
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";
|
package/bin/impl/pub/impl.js
CHANGED
|
@@ -69,12 +69,39 @@ export async function dlerPub(timer, isDev, config) {
|
|
|
69
69
|
);
|
|
70
70
|
const elapsedTime = getElapsedPerfTime(timer);
|
|
71
71
|
const formattedPerfTime = prettyMilliseconds(elapsedTime, { verbose: true });
|
|
72
|
+
const packageName = buildConfig.projectName ?? "The project";
|
|
73
|
+
const publishedLibNames = (() => {
|
|
74
|
+
const includeLibs = buildConfig.libsActMode === "libs-only" || buildConfig.libsActMode === "main-and-libs";
|
|
75
|
+
if (!includeLibs || buildConfig.commonPubPause) return [];
|
|
76
|
+
const entries = Object.entries(buildConfig.libsList ?? {});
|
|
77
|
+
const names = [];
|
|
78
|
+
for (const [libName, libCfg] of entries) {
|
|
79
|
+
if (!libCfg?.libPubPause) names.push(libName);
|
|
80
|
+
}
|
|
81
|
+
return names;
|
|
82
|
+
})();
|
|
83
|
+
const displayName = publishedLibNames.length > 0 ? publishedLibNames.join(", ") : packageName;
|
|
84
|
+
const publishTargetLabel = (() => {
|
|
85
|
+
switch (buildConfig.commonPubRegistry) {
|
|
86
|
+
case "npm":
|
|
87
|
+
return "to NPM";
|
|
88
|
+
case "jsr":
|
|
89
|
+
return "to JSR";
|
|
90
|
+
case "npm-jsr":
|
|
91
|
+
return "to NPM and JSR";
|
|
92
|
+
default:
|
|
93
|
+
return "to NPM and JSR";
|
|
94
|
+
}
|
|
95
|
+
})();
|
|
72
96
|
if (multiStepSpinner) {
|
|
73
97
|
multiStepSpinner.complete(
|
|
74
|
-
|
|
98
|
+
`${displayName} publish ${publishTargetLabel} completed successfully in ${formattedPerfTime}`
|
|
75
99
|
);
|
|
76
100
|
} else {
|
|
77
|
-
relinka(
|
|
101
|
+
relinka(
|
|
102
|
+
"success",
|
|
103
|
+
`\u2705 ${displayName} publish ${publishTargetLabel} completed successfully in ${formattedPerfTime}`
|
|
104
|
+
);
|
|
78
105
|
}
|
|
79
106
|
}
|
|
80
107
|
} catch (error) {
|
|
@@ -1,23 +1,31 @@
|
|
|
1
|
+
import { dirname } from "node:path";
|
|
1
2
|
import { relinka } from "@reliverse/relinka";
|
|
2
3
|
import { endPrompt, startPrompt } from "@reliverse/rempts";
|
|
3
4
|
import { isBun, isBunPM, isBunRuntime } from "@reliverse/runtime";
|
|
4
|
-
import { readPackageJSON
|
|
5
|
+
import { readPackageJSON } from "pkg-types";
|
|
5
6
|
import { cliVersion, dlerName } from "../config/constants.js";
|
|
6
|
-
export async function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} catch (error) {
|
|
11
|
-
relinka("warn", "Could not read package.json, using default values");
|
|
12
|
-
return {};
|
|
7
|
+
export async function readLocalPackageJSON() {
|
|
8
|
+
const candidateDirs = [];
|
|
9
|
+
if (Array.isArray(process.argv) && typeof process.argv[1] === "string" && process.argv[1].length > 0) {
|
|
10
|
+
candidateDirs.push(dirname(process.argv[1]));
|
|
13
11
|
}
|
|
12
|
+
candidateDirs.push(process.cwd());
|
|
13
|
+
for (const dir of candidateDirs) {
|
|
14
|
+
try {
|
|
15
|
+
const pkg = await readPackageJSON(dir);
|
|
16
|
+
return { name: pkg.name, version: pkg.version };
|
|
17
|
+
} catch {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
relinka("verbose", "Could not read package.json, using default values");
|
|
21
|
+
return {};
|
|
14
22
|
}
|
|
15
23
|
export const getPkgName = async () => {
|
|
16
|
-
const pkg = await
|
|
24
|
+
const pkg = await readLocalPackageJSON();
|
|
17
25
|
return pkg.name || "unknown";
|
|
18
26
|
};
|
|
19
27
|
export const getPkgVersion = async () => {
|
|
20
|
-
const pkg = await
|
|
28
|
+
const pkg = await readLocalPackageJSON();
|
|
21
29
|
return pkg.version || "0.0.0";
|
|
22
30
|
};
|
|
23
31
|
export async function showStartPrompt(isDev, showRuntimeInfo, clearConsole) {
|
package/bin/mod.d.ts
CHANGED
|
@@ -414,7 +414,7 @@ export { resolveAllCrossLibs } from "./impl/utils/resolve-cross-libs";
|
|
|
414
414
|
export type { EncryptedDataMemory, EncryptedDataMemoryShape, ReliverseMemory, UserDataMemory, UserDataMemoryShape, } from "./impl/utils/schemaMemory";
|
|
415
415
|
export type { RepoInfo, ReposConfig } from "./impl/utils/schemaTemplate";
|
|
416
416
|
export { DEFAULT_REPOS_CONFIG, generateReposJsonSchema, isReposConfig, shouldRegenerateSchema, } from "./impl/utils/schemaTemplate";
|
|
417
|
-
export { getPkgName, getPkgVersion,
|
|
417
|
+
export { getPkgName, getPkgVersion, readLocalPackageJSON, showEndPrompt, showStartPrompt, } from "./impl/utils/startEndPrompts";
|
|
418
418
|
export { cd, getCurrentWorkingDirectory, handleError, pwd, rm, } from "./impl/utils/terminalHelpers";
|
|
419
419
|
export { setupDevModeIfNeeded } from "./impl/utils/testsRuntime";
|
|
420
420
|
export { findTsconfigUp } from "./impl/utils/tsconfigHelpers";
|
package/bin/mod.js
CHANGED