@reliverse/dler 1.7.123 → 1.7.124
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/library-flow.d.ts +1 -1
- package/bin/impl/build/library-flow.js +5 -3
- package/bin/impl/build/regular-flow.js +9 -5
- package/bin/impl/config/prepare.js +3 -6
- package/bin/impl/providers/better-t-stack/types.d.ts +13 -13
- package/bin/impl/pub/pub-library.d.ts +1 -1
- package/bin/impl/pub/pub-library.js +32 -9
- package/bin/impl/pub/pub-regular.d.ts +2 -2
- package/bin/impl/pub/pub-regular.js +9 -4
- package/bin/impl/utils/spinner.d.ts +4 -4
- package/package.json +1 -1
|
@@ -165,7 +165,7 @@ export declare const optionsSchema: z.ZodObject<{
|
|
|
165
165
|
}, z.core.$strip>;
|
|
166
166
|
export declare const outroText = "\uD83E\uDD73 All Done, Happy Hacking!";
|
|
167
167
|
export declare function getLatestNpmVersion(packageName: string): Promise<string>;
|
|
168
|
-
export declare function getPackageManager(): Promise<"
|
|
168
|
+
export declare function getPackageManager(): Promise<"bun" | "npm" | "yarn" | "pnpm">;
|
|
169
169
|
export declare function getEnvFiles(cwd: string): Promise<string[]>;
|
|
170
170
|
export declare function updateEnvs({ envs, files, isCommented, }: {
|
|
171
171
|
/**
|
|
@@ -23,4 +23,4 @@ export declare function libraries_build(isDev: boolean, timer: PerfTimer, libsLi
|
|
|
23
23
|
/**
|
|
24
24
|
* Publishes all libs defined in config.libsList.
|
|
25
25
|
*/
|
|
26
|
-
export declare function libraries_publish(isDev: boolean, timer: PerfTimer, libsList: Record<string, LibConfig>, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, libsDirDist: string, commonPubPause: boolean, commonPubRegistry: "jsr" | "npm" | "npm-jsr", distJsrAllowDirty: boolean, distJsrSlowTypes: boolean): Promise<void>;
|
|
26
|
+
export declare function libraries_publish(isDev: boolean, timer: PerfTimer, libsList: Record<string, LibConfig>, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, libsDirDist: string, commonPubPause: boolean, commonPubRegistry: "jsr" | "npm" | "npm-jsr", distJsrAllowDirty: boolean, distJsrSlowTypes: boolean, shouldShowSpinner?: boolean): Promise<void>;
|
|
@@ -52,7 +52,8 @@ export async function library_pubFlow(timer, isDev, config) {
|
|
|
52
52
|
config.commonPubPause,
|
|
53
53
|
config.commonPubRegistry,
|
|
54
54
|
config.distJsrAllowDirty,
|
|
55
|
-
config.distJsrSlowTypes
|
|
55
|
+
config.distJsrSlowTypes,
|
|
56
|
+
config.displayBuildPubLogs === false
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
function extractFolderName(libName, libConfig) {
|
|
@@ -173,7 +174,7 @@ export async function libraries_build(isDev, timer, libsList, libsDirDist, libsD
|
|
|
173
174
|
throw error;
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
|
-
export async function libraries_publish(isDev, timer, libsList, distJsrDryRun, distJsrFailOnWarn, libsDirDist, commonPubPause, commonPubRegistry, distJsrAllowDirty, distJsrSlowTypes) {
|
|
177
|
+
export async function libraries_publish(isDev, timer, libsList, distJsrDryRun, distJsrFailOnWarn, libsDirDist, commonPubPause, commonPubRegistry, distJsrAllowDirty, distJsrSlowTypes, shouldShowSpinner = false) {
|
|
177
178
|
relinka("verbose", "Starting libraries_publish");
|
|
178
179
|
if (!libsList || Object.keys(libsList).length === 0) {
|
|
179
180
|
relinka("verbose", "No lib configs found in config, skipping libs publish.");
|
|
@@ -214,7 +215,8 @@ export async function libraries_publish(isDev, timer, libsList, distJsrDryRun, d
|
|
|
214
215
|
distJsrAllowDirty,
|
|
215
216
|
distJsrSlowTypes,
|
|
216
217
|
isDev,
|
|
217
|
-
timer
|
|
218
|
+
timer,
|
|
219
|
+
shouldShowSpinner
|
|
218
220
|
);
|
|
219
221
|
if (publishSpinner) {
|
|
220
222
|
publishSpinner.succeed(`${libName} published to ${effectivePubRegistry} successfully`);
|
|
@@ -151,6 +151,7 @@ export async function regular_pubFlow(timer, isDev, config) {
|
|
|
151
151
|
relinka("verbose", "Skipping main project publish as libsActMode is set to 'libs-only'");
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
+
const shouldShowSpinner = config.displayBuildPubLogs === false;
|
|
154
155
|
switch (config.commonPubRegistry) {
|
|
155
156
|
case "jsr":
|
|
156
157
|
relinka("verbose", "Publishing main project to JSR...");
|
|
@@ -162,7 +163,8 @@ export async function regular_pubFlow(timer, isDev, config) {
|
|
|
162
163
|
config.distJsrDirName,
|
|
163
164
|
config.distJsrAllowDirty,
|
|
164
165
|
config.distJsrSlowTypes,
|
|
165
|
-
timer
|
|
166
|
+
timer,
|
|
167
|
+
shouldShowSpinner
|
|
166
168
|
);
|
|
167
169
|
break;
|
|
168
170
|
case "npm":
|
|
@@ -172,12 +174,12 @@ export async function regular_pubFlow(timer, isDev, config) {
|
|
|
172
174
|
isDev,
|
|
173
175
|
config.commonPubPause,
|
|
174
176
|
config.distNpmDirName,
|
|
175
|
-
timer
|
|
177
|
+
timer,
|
|
178
|
+
shouldShowSpinner
|
|
176
179
|
);
|
|
177
180
|
break;
|
|
178
181
|
case "npm-jsr": {
|
|
179
182
|
relinka("verbose", "Publishing main project to both NPM and JSR...");
|
|
180
|
-
const shouldShowSpinner = config.displayBuildPubLogs === false;
|
|
181
183
|
let pubSpinnerGroup = null;
|
|
182
184
|
if (shouldShowSpinner) {
|
|
183
185
|
pubSpinnerGroup = createSpinnerGroup({
|
|
@@ -200,7 +202,8 @@ export async function regular_pubFlow(timer, isDev, config) {
|
|
|
200
202
|
config.distJsrDirName,
|
|
201
203
|
config.distJsrAllowDirty,
|
|
202
204
|
config.distJsrSlowTypes,
|
|
203
|
-
timer
|
|
205
|
+
timer,
|
|
206
|
+
shouldShowSpinner
|
|
204
207
|
);
|
|
205
208
|
if (pubSpinnerGroup?.spinners[1]) {
|
|
206
209
|
pubSpinnerGroup.spinners[1].succeed("JSR publish completed");
|
|
@@ -219,7 +222,8 @@ export async function regular_pubFlow(timer, isDev, config) {
|
|
|
219
222
|
isDev,
|
|
220
223
|
config.commonPubPause,
|
|
221
224
|
config.distNpmDirName,
|
|
222
|
-
timer
|
|
225
|
+
timer,
|
|
226
|
+
shouldShowSpinner
|
|
223
227
|
);
|
|
224
228
|
if (pubSpinnerGroup?.spinners[0]) {
|
|
225
229
|
pubSpinnerGroup.spinners[0].succeed("NPM publish completed");
|
|
@@ -27,12 +27,9 @@ export async function ensureReliverseConfig(isDev, configKind = DEFAULT_CONFIG_K
|
|
|
27
27
|
`${configKind === "ts" ? "TypeScript" : "JSONC"} config was created at ${configPath}`
|
|
28
28
|
);
|
|
29
29
|
relinka("verbose", "Edit this file to customize build and publish settings");
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} else {
|
|
34
|
-
relinka("verbose", "When you're ready, run `bun pub` to build and publish");
|
|
35
|
-
}
|
|
30
|
+
relinka("log", "If you plan to publish with Rse, please note:");
|
|
31
|
+
relinka("log", "commonPubPause is set to true in the config by default");
|
|
32
|
+
relinka("log", "Set it to false, then run `rse publish` for NPM/JSR publishing");
|
|
36
33
|
} catch (error) {
|
|
37
34
|
relinka(
|
|
38
35
|
"error",
|
|
@@ -1,7 +1,7 @@
|
|
|
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
5
|
mysql: "mysql";
|
|
6
6
|
mongodb: "mongodb";
|
|
7
7
|
postgres: "postgres";
|
|
@@ -10,23 +10,23 @@ 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
|
-
next: "next";
|
|
21
|
-
convex: "convex";
|
|
22
20
|
express: "express";
|
|
23
21
|
fastify: "fastify";
|
|
22
|
+
next: "next";
|
|
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
|
-
bun: "bun";
|
|
29
28
|
none: "none";
|
|
29
|
+
bun: "bun";
|
|
30
30
|
node: "node";
|
|
31
31
|
workers: "workers";
|
|
32
32
|
}>;
|
|
@@ -34,43 +34,43 @@ 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
37
|
solid: "solid";
|
|
39
38
|
next: "next";
|
|
40
|
-
"react-router": "react-router";
|
|
41
39
|
"tanstack-router": "tanstack-router";
|
|
40
|
+
"react-router": "react-router";
|
|
42
41
|
"tanstack-start": "tanstack-start";
|
|
42
|
+
nuxt: "nuxt";
|
|
43
43
|
"native-nativewind": "native-nativewind";
|
|
44
44
|
"native-unistyles": "native-unistyles";
|
|
45
45
|
}>;
|
|
46
46
|
export type Frontend = z.infer<typeof FrontendSchema>;
|
|
47
47
|
export declare const AddonsSchema: z.ZodEnum<{
|
|
48
|
-
biome: "biome";
|
|
49
48
|
none: "none";
|
|
49
|
+
biome: "biome";
|
|
50
|
+
pwa: "pwa";
|
|
50
51
|
tauri: "tauri";
|
|
51
52
|
starlight: "starlight";
|
|
52
|
-
turborepo: "turborepo";
|
|
53
|
-
pwa: "pwa";
|
|
54
53
|
husky: "husky";
|
|
54
|
+
turborepo: "turborepo";
|
|
55
55
|
}>;
|
|
56
56
|
export type Addons = z.infer<typeof AddonsSchema>;
|
|
57
57
|
export declare const ExamplesSchema: z.ZodEnum<{
|
|
58
|
-
ai: "ai";
|
|
59
58
|
none: "none";
|
|
59
|
+
ai: "ai";
|
|
60
60
|
todo: "todo";
|
|
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
71
|
supabase: "supabase";
|
|
72
|
-
neon: "neon";
|
|
73
72
|
turso: "turso";
|
|
73
|
+
neon: "neon";
|
|
74
74
|
"prisma-postgres": "prisma-postgres";
|
|
75
75
|
"mongodb-atlas": "mongodb-atlas";
|
|
76
76
|
}>;
|
|
@@ -2,4 +2,4 @@ import type { PerfTimer } from "../types/mod.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Publishes a library to the specified commonPubRegistry.
|
|
4
4
|
*/
|
|
5
|
-
export declare function library_publishLibrary(effectivePubRegistry: "jsr" | "npm" | "npm-jsr" | undefined, libName: string, npmOutDir: string, jsrOutDir: string, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, distJsrAllowDirty: boolean, distJsrSlowTypes: boolean, isDev: boolean, timer: PerfTimer): Promise<void>;
|
|
5
|
+
export declare function library_publishLibrary(effectivePubRegistry: "jsr" | "npm" | "npm-jsr" | undefined, libName: string, npmOutDir: string, jsrOutDir: string, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, distJsrAllowDirty: boolean, distJsrSlowTypes: boolean, isDev: boolean, timer: PerfTimer, shouldShowSpinner?: boolean): Promise<void>;
|
|
@@ -6,7 +6,7 @@ import { CONCURRENCY_DEFAULT } from "../config/constants.js";
|
|
|
6
6
|
import { withWorkingDirectory } from "../utils/utils-error-cwd.js";
|
|
7
7
|
import { writeFileSafe } from "../utils/utils-fs.js";
|
|
8
8
|
import { pausePerfTimer, resumePerfTimer } from "../utils/utils-perf.js";
|
|
9
|
-
export async function library_publishLibrary(effectivePubRegistry, libName, npmOutDir, jsrOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, isDev, timer) {
|
|
9
|
+
export async function library_publishLibrary(effectivePubRegistry, libName, npmOutDir, jsrOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, isDev, timer, shouldShowSpinner = false) {
|
|
10
10
|
switch (effectivePubRegistry) {
|
|
11
11
|
case "jsr":
|
|
12
12
|
relinka("verbose", `Publishing lib ${libName} to JSR only...`);
|
|
@@ -19,19 +19,36 @@ export async function library_publishLibrary(effectivePubRegistry, libName, npmO
|
|
|
19
19
|
distJsrSlowTypes,
|
|
20
20
|
libName,
|
|
21
21
|
isDev,
|
|
22
|
-
timer
|
|
22
|
+
timer,
|
|
23
|
+
shouldShowSpinner
|
|
23
24
|
);
|
|
24
25
|
break;
|
|
25
26
|
case "npm":
|
|
26
27
|
relinka("verbose", `Publishing lib ${libName} to NPM only...`);
|
|
27
28
|
relinka("null", "");
|
|
28
|
-
await library_pubToNpm(
|
|
29
|
+
await library_pubToNpm(
|
|
30
|
+
npmOutDir,
|
|
31
|
+
distJsrDryRun,
|
|
32
|
+
distJsrFailOnWarn,
|
|
33
|
+
libName,
|
|
34
|
+
isDev,
|
|
35
|
+
timer,
|
|
36
|
+
shouldShowSpinner
|
|
37
|
+
);
|
|
29
38
|
break;
|
|
30
39
|
case "npm-jsr": {
|
|
31
40
|
relinka("verbose", `Publishing lib ${libName} to both NPM and JSR...`);
|
|
32
41
|
relinka("null", "");
|
|
33
42
|
const publishTasks = [
|
|
34
|
-
() => library_pubToNpm(
|
|
43
|
+
() => library_pubToNpm(
|
|
44
|
+
npmOutDir,
|
|
45
|
+
distJsrDryRun,
|
|
46
|
+
distJsrFailOnWarn,
|
|
47
|
+
libName,
|
|
48
|
+
isDev,
|
|
49
|
+
timer,
|
|
50
|
+
shouldShowSpinner
|
|
51
|
+
),
|
|
35
52
|
() => library_pubToJsr(
|
|
36
53
|
jsrOutDir,
|
|
37
54
|
distJsrDryRun,
|
|
@@ -40,7 +57,8 @@ export async function library_publishLibrary(effectivePubRegistry, libName, npmO
|
|
|
40
57
|
distJsrSlowTypes,
|
|
41
58
|
libName,
|
|
42
59
|
isDev,
|
|
43
|
-
timer
|
|
60
|
+
timer,
|
|
61
|
+
shouldShowSpinner
|
|
44
62
|
)
|
|
45
63
|
];
|
|
46
64
|
await pAll(publishTasks, { concurrency: CONCURRENCY_DEFAULT });
|
|
@@ -53,7 +71,7 @@ export async function library_publishLibrary(effectivePubRegistry, libName, npmO
|
|
|
53
71
|
);
|
|
54
72
|
}
|
|
55
73
|
}
|
|
56
|
-
async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, libName, isDev, timer) {
|
|
74
|
+
async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, libName, isDev, timer, shouldShowSpinner = false) {
|
|
57
75
|
relinka("verbose", `Starting library_pubToJsr for lib: ${libName}`);
|
|
58
76
|
let bunDirCreated = false;
|
|
59
77
|
const bunDir = "node_modules/bun";
|
|
@@ -79,7 +97,8 @@ async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, dis
|
|
|
79
97
|
distJsrDryRun ? "--dry-run" : "",
|
|
80
98
|
distJsrFailOnWarn ? "--fail-on-warn" : "",
|
|
81
99
|
distJsrAllowDirty ? "--allow-dirty" : "",
|
|
82
|
-
distJsrSlowTypes ? "--allow-slow-types" : ""
|
|
100
|
+
distJsrSlowTypes ? "--allow-slow-types" : "",
|
|
101
|
+
shouldShowSpinner ? "--silent" : ""
|
|
83
102
|
].filter(Boolean).join(" ");
|
|
84
103
|
await execaCommand(command, { stdio: "inherit" });
|
|
85
104
|
relinka("null", "");
|
|
@@ -99,14 +118,18 @@ async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, dis
|
|
|
99
118
|
}
|
|
100
119
|
}
|
|
101
120
|
}
|
|
102
|
-
async function library_pubToNpm(libOutDir, distJsrDryRun, _distJsrFailOnWarn, libName, _isDev, timer) {
|
|
121
|
+
async function library_pubToNpm(libOutDir, distJsrDryRun, _distJsrFailOnWarn, libName, _isDev, timer, shouldShowSpinner = false) {
|
|
103
122
|
relinka("verbose", `Starting library_pubToNpm for lib: ${libName}`);
|
|
104
123
|
try {
|
|
105
124
|
if (timer) pausePerfTimer(timer);
|
|
106
125
|
await withWorkingDirectory(libOutDir, async () => {
|
|
107
126
|
relinka("verbose", `Publishing lib ${libName} to NPM from ${libOutDir}`);
|
|
108
127
|
relinka("null", "");
|
|
109
|
-
const command = [
|
|
128
|
+
const command = [
|
|
129
|
+
"bun publish",
|
|
130
|
+
distJsrDryRun ? "--dry-run" : "",
|
|
131
|
+
shouldShowSpinner ? "--silent" : ""
|
|
132
|
+
].filter(Boolean).join(" ");
|
|
110
133
|
await execaCommand(command, { stdio: "inherit" });
|
|
111
134
|
relinka("null", "");
|
|
112
135
|
relinka(
|
|
@@ -2,8 +2,8 @@ import type { PerfTimer } from "../types/mod.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Publishes the JSR distribution.
|
|
4
4
|
*/
|
|
5
|
-
export declare function regular_pubToJsr(distJsrDryRun: boolean, distJsrFailOnWarn: boolean, isDev: boolean, commonPubPause: boolean, distJsrDirName: string, distJsrAllowDirty: boolean, distJsrSlowTypes: boolean, timer: PerfTimer): Promise<void>;
|
|
5
|
+
export declare function regular_pubToJsr(distJsrDryRun: boolean, distJsrFailOnWarn: boolean, isDev: boolean, commonPubPause: boolean, distJsrDirName: string, distJsrAllowDirty: boolean, distJsrSlowTypes: boolean, timer: PerfTimer, shouldShowSpinner?: boolean): Promise<void>;
|
|
6
6
|
/**
|
|
7
7
|
* Publishes the NPM distribution.
|
|
8
8
|
*/
|
|
9
|
-
export declare function regular_pubToNpm(distJsrDryRun: boolean, _isDev: boolean, commonPubPause: boolean, distNpmDirName: string, timer: PerfTimer): Promise<void>;
|
|
9
|
+
export declare function regular_pubToNpm(distJsrDryRun: boolean, _isDev: boolean, commonPubPause: boolean, distNpmDirName: string, timer: PerfTimer, shouldShowSpinner?: boolean): Promise<void>;
|
|
@@ -6,7 +6,7 @@ import { PROJECT_ROOT } from "../config/constants.js";
|
|
|
6
6
|
import { withWorkingDirectory } from "../utils/utils-error-cwd.js";
|
|
7
7
|
import { writeFileSafe } from "../utils/utils-fs.js";
|
|
8
8
|
import { pausePerfTimer, resumePerfTimer } from "../utils/utils-perf.js";
|
|
9
|
-
export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, isDev, commonPubPause, distJsrDirName, distJsrAllowDirty, distJsrSlowTypes, timer) {
|
|
9
|
+
export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, isDev, commonPubPause, distJsrDirName, distJsrAllowDirty, distJsrSlowTypes, timer, shouldShowSpinner = false) {
|
|
10
10
|
try {
|
|
11
11
|
if (!commonPubPause) {
|
|
12
12
|
relinka("verbose", "Publishing to JSR...");
|
|
@@ -32,7 +32,8 @@ export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, isDev,
|
|
|
32
32
|
distJsrDryRun ? "--dry-run" : "",
|
|
33
33
|
distJsrFailOnWarn ? "--fail-on-warn" : "",
|
|
34
34
|
distJsrAllowDirty ? "--allow-dirty" : "",
|
|
35
|
-
distJsrSlowTypes ? "--allow-slow-types" : ""
|
|
35
|
+
distJsrSlowTypes ? "--allow-slow-types" : "",
|
|
36
|
+
shouldShowSpinner ? "--silent" : ""
|
|
36
37
|
].filter(Boolean).join(" ");
|
|
37
38
|
relinka("verbose", `Running publish command: ${command}`);
|
|
38
39
|
await execaCommand(command, { stdio: "inherit" });
|
|
@@ -53,14 +54,18 @@ export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, isDev,
|
|
|
53
54
|
throw error;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
export async function regular_pubToNpm(distJsrDryRun, _isDev, commonPubPause, distNpmDirName, timer) {
|
|
57
|
+
export async function regular_pubToNpm(distJsrDryRun, _isDev, commonPubPause, distNpmDirName, timer, shouldShowSpinner = false) {
|
|
57
58
|
try {
|
|
58
59
|
if (!commonPubPause) {
|
|
59
60
|
relinka("verbose", "Publishing to NPM...");
|
|
60
61
|
const distNpmDirNameResolved = path.resolve(PROJECT_ROOT, distNpmDirName);
|
|
61
62
|
if (timer) pausePerfTimer(timer);
|
|
62
63
|
await withWorkingDirectory(distNpmDirNameResolved, async () => {
|
|
63
|
-
const command = [
|
|
64
|
+
const command = [
|
|
65
|
+
"bun publish",
|
|
66
|
+
distJsrDryRun ? "--dry-run" : "",
|
|
67
|
+
shouldShowSpinner ? "--silent" : ""
|
|
68
|
+
].filter(Boolean).join(" ");
|
|
64
69
|
relinka("verbose", `Running publish command: ${command}`);
|
|
65
70
|
await execaCommand(command, { stdio: "inherit" });
|
|
66
71
|
relinka("null", "");
|
|
@@ -153,12 +153,9 @@ export declare function createTransferSpinner(operation: string, options?: Spinn
|
|
|
153
153
|
error: (error: Error | string) => void;
|
|
154
154
|
};
|
|
155
155
|
export declare const spinners: {
|
|
156
|
-
readonly binary: import("cli-spinners").Spinner;
|
|
157
|
-
readonly arrow: import("cli-spinners").Spinner;
|
|
158
156
|
readonly line: import("cli-spinners").Spinner;
|
|
157
|
+
readonly binary: import("cli-spinners").Spinner;
|
|
159
158
|
readonly pipe: import("cli-spinners").Spinner;
|
|
160
|
-
readonly material: import("cli-spinners").Spinner;
|
|
161
|
-
readonly star: import("cli-spinners").Spinner;
|
|
162
159
|
readonly dots: import("cli-spinners").Spinner;
|
|
163
160
|
readonly dots2: import("cli-spinners").Spinner;
|
|
164
161
|
readonly dots3: import("cli-spinners").Spinner;
|
|
@@ -176,6 +173,7 @@ export declare const spinners: {
|
|
|
176
173
|
readonly line2: import("cli-spinners").Spinner;
|
|
177
174
|
readonly simpleDots: import("cli-spinners").Spinner;
|
|
178
175
|
readonly simpleDotsScrolling: import("cli-spinners").Spinner;
|
|
176
|
+
readonly star: import("cli-spinners").Spinner;
|
|
179
177
|
readonly star2: import("cli-spinners").Spinner;
|
|
180
178
|
readonly flip: import("cli-spinners").Spinner;
|
|
181
179
|
readonly hamburger: import("cli-spinners").Spinner;
|
|
@@ -207,6 +205,7 @@ export declare const spinners: {
|
|
|
207
205
|
readonly toggle11: import("cli-spinners").Spinner;
|
|
208
206
|
readonly toggle12: import("cli-spinners").Spinner;
|
|
209
207
|
readonly toggle13: import("cli-spinners").Spinner;
|
|
208
|
+
readonly arrow: import("cli-spinners").Spinner;
|
|
210
209
|
readonly arrow2: import("cli-spinners").Spinner;
|
|
211
210
|
readonly arrow3: import("cli-spinners").Spinner;
|
|
212
211
|
readonly bouncingBar: import("cli-spinners").Spinner;
|
|
@@ -216,6 +215,7 @@ export declare const spinners: {
|
|
|
216
215
|
readonly hearts: import("cli-spinners").Spinner;
|
|
217
216
|
readonly clock: import("cli-spinners").Spinner;
|
|
218
217
|
readonly earth: import("cli-spinners").Spinner;
|
|
218
|
+
readonly material: import("cli-spinners").Spinner;
|
|
219
219
|
readonly moon: import("cli-spinners").Spinner;
|
|
220
220
|
readonly runner: import("cli-spinners").Spinner;
|
|
221
221
|
readonly pong: import("cli-spinners").Spinner;
|