@reliverse/dler 1.7.59 → 1.7.60
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/libs/cfg/cfg-impl/rse-config/rse-impl/rse-define.d.ts +14 -14
- package/bin/libs/sdk/sdk-impl/config/info.js +1 -1
- package/bin/libs/sdk/sdk-impl/pub/pub-library.js +21 -1
- package/bin/libs/sdk/sdk-impl/pub/pub-regular.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/pub/pub-regular.js +20 -1
- package/bin/libs/sdk/sdk-impl/utils/utils-error-cwd.js +0 -2
- package/package.json +1 -1
|
@@ -10,11 +10,11 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
10
10
|
projectDomain?: string | undefined;
|
|
11
11
|
projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
|
|
12
12
|
projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
|
|
13
|
-
projectPackageManager?: "
|
|
13
|
+
projectPackageManager?: "npm" | "pnpm" | "bun" | "yarn" | undefined;
|
|
14
14
|
projectState?: "created" | "creating" | undefined;
|
|
15
|
-
projectCategory?: "
|
|
15
|
+
projectCategory?: "cli" | "unknown" | "website" | "vscode" | "browser" | "library" | "mobile" | undefined;
|
|
16
16
|
projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
|
|
17
|
-
projectFramework?: "
|
|
17
|
+
projectFramework?: "npm-jsr" | "rempts" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "vue" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
|
|
18
18
|
projectTemplate?: "unknown" | "blefnk/relivator-nextjs-template" | "blefnk/relivator-docker-template" | "blefnk/next-react-ts-src-minimal" | "blefnk/all-in-one-nextjs-template" | "blefnk/create-t3-app" | "blefnk/create-next-app" | "blefnk/astro-starlight-template" | "blefnk/versator-nextjs-template" | "blefnk/relivator-lynxjs-template" | "blefnk/relivator-react-native-template" | "reliverse/template-browser-extension" | "microsoft/vscode-extension-samples" | "microsoft/vscode-extension-template" | "rsetarter-template" | "blefnk/deno-cli-tutorial" | undefined;
|
|
19
19
|
projectTemplateDate?: string | undefined;
|
|
20
20
|
features?: {
|
|
@@ -37,14 +37,14 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
37
37
|
i18n?: "unknown" | "next-intl" | undefined;
|
|
38
38
|
analytics?: "unknown" | "vercel" | undefined;
|
|
39
39
|
authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
|
|
40
|
-
api?: "
|
|
41
|
-
testing?: "
|
|
40
|
+
api?: "unknown" | "hono" | "trpc" | "graphql" | "rest" | undefined;
|
|
41
|
+
testing?: "unknown" | "bun" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
|
|
42
42
|
stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
|
|
43
43
|
formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
|
|
44
|
-
styling?: "
|
|
44
|
+
styling?: "unknown" | "tailwind" | "styled-components" | "css-modules" | "sass" | undefined;
|
|
45
45
|
uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
|
|
46
46
|
databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
|
|
47
|
-
databaseProvider?: "
|
|
47
|
+
databaseProvider?: "unknown" | "pg" | "mysql" | "sqlite" | "mongodb" | undefined;
|
|
48
48
|
linting?: "eslint" | "unknown" | undefined;
|
|
49
49
|
formatting?: "biome" | "unknown" | undefined;
|
|
50
50
|
payment?: "unknown" | "stripe" | undefined;
|
|
@@ -57,7 +57,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
57
57
|
documentation?: "unknown" | "starlight" | "nextra" | undefined;
|
|
58
58
|
icons?: "unknown" | "lucide" | undefined;
|
|
59
59
|
mail?: "unknown" | "resend" | undefined;
|
|
60
|
-
cache?: "
|
|
60
|
+
cache?: "unknown" | "redis" | undefined;
|
|
61
61
|
storage?: "unknown" | "cloudflare" | undefined;
|
|
62
62
|
cdn?: "unknown" | "cloudflare" | undefined;
|
|
63
63
|
cms?: "unknown" | "contentlayer" | undefined;
|
|
@@ -67,7 +67,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
67
67
|
dates?: "unknown" | "dayjs" | undefined;
|
|
68
68
|
markdown?: "unknown" | "mdx" | undefined;
|
|
69
69
|
security?: "unknown" | "auth" | undefined;
|
|
70
|
-
routing?: "
|
|
70
|
+
routing?: "unknown" | "next" | "react-router" | "tanstack-router" | undefined;
|
|
71
71
|
} | undefined;
|
|
72
72
|
codeStyle?: {
|
|
73
73
|
lineWidth?: number | undefined;
|
|
@@ -75,7 +75,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
75
75
|
indentStyle?: "space" | "tab" | undefined;
|
|
76
76
|
quoteMark?: "single" | "double" | undefined;
|
|
77
77
|
semicolons?: boolean | undefined;
|
|
78
|
-
trailingComma?: "none" | "
|
|
78
|
+
trailingComma?: "none" | "es5" | "all" | undefined;
|
|
79
79
|
bracketSpacing?: boolean | undefined;
|
|
80
80
|
arrowParens?: "always" | "avoid" | undefined;
|
|
81
81
|
tabWidth?: number | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
83
83
|
dontRemoveComments?: boolean | undefined;
|
|
84
84
|
shouldAddComments?: boolean | undefined;
|
|
85
85
|
typeOrInterface?: "type" | "interface" | "mixed" | undefined;
|
|
86
|
-
importOrRequire?: "
|
|
86
|
+
importOrRequire?: "mixed" | "import" | "require" | undefined;
|
|
87
87
|
cjsToEsm?: boolean | undefined;
|
|
88
88
|
modernize?: {
|
|
89
89
|
replaceFs?: boolean | undefined;
|
|
@@ -96,7 +96,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
96
96
|
importSymbol?: string | undefined;
|
|
97
97
|
} | undefined;
|
|
98
98
|
monorepo?: {
|
|
99
|
-
type?: "none" | "
|
|
99
|
+
type?: "none" | "turborepo" | "nx" | "pnpm" | "bun" | undefined;
|
|
100
100
|
packages?: string[] | undefined;
|
|
101
101
|
sharedPackages?: string[] | undefined;
|
|
102
102
|
} | undefined;
|
|
@@ -111,9 +111,9 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
111
111
|
customReposOnNewProject?: boolean | undefined;
|
|
112
112
|
envComposerOpenBrowser?: boolean | undefined;
|
|
113
113
|
repoBranch?: string | undefined;
|
|
114
|
-
repoPrivacy?: "
|
|
114
|
+
repoPrivacy?: "unknown" | "public" | "private" | undefined;
|
|
115
115
|
projectArchitecture?: "unknown" | "fullstack" | "separated" | undefined;
|
|
116
|
-
projectRuntime?: "
|
|
116
|
+
projectRuntime?: "node" | "bun" | "deno" | undefined;
|
|
117
117
|
skipPromptsUseAutoBehavior?: boolean | undefined;
|
|
118
118
|
deployBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
119
119
|
depsBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import fs from "@reliverse/relifso";
|
|
1
2
|
import { relinka } from "@reliverse/relinka";
|
|
2
3
|
import { execaCommand } from "execa";
|
|
3
4
|
import pAll from "p-all";
|
|
4
5
|
import { CONCURRENCY_DEFAULT } from "../utils/utils-consts.js";
|
|
5
6
|
import { withWorkingDirectory } from "../utils/utils-error-cwd.js";
|
|
7
|
+
import { writeFileSafe } from "../utils/utils-fs.js";
|
|
6
8
|
import { pausePerfTimer, resumePerfTimer } from "../utils/utils-perf.js";
|
|
7
9
|
export async function library_publishLibrary(effectivePubRegistry, libName, npmOutDir, jsrOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, isDev, timer) {
|
|
8
10
|
switch (effectivePubRegistry) {
|
|
@@ -51,9 +53,23 @@ export async function library_publishLibrary(effectivePubRegistry, libName, npmO
|
|
|
51
53
|
);
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
|
-
async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, libName,
|
|
56
|
+
async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, libName, isDev, timer) {
|
|
55
57
|
relinka("verbose", `Starting library_pubToJsr for lib: ${libName}`);
|
|
58
|
+
let bunDirCreated = false;
|
|
59
|
+
const bunDir = "node_modules/bun";
|
|
60
|
+
const bunPkgPath = `${bunDir}/package.json`;
|
|
56
61
|
try {
|
|
62
|
+
if (isDev) {
|
|
63
|
+
if (!await fs.pathExists(bunPkgPath)) {
|
|
64
|
+
await fs.ensureDir(bunDir);
|
|
65
|
+
await writeFileSafe(
|
|
66
|
+
bunPkgPath,
|
|
67
|
+
'{\n "name": "bun"\n}',
|
|
68
|
+
"Create bun package.json for dev publish"
|
|
69
|
+
);
|
|
70
|
+
bunDirCreated = true;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
57
73
|
if (timer) pausePerfTimer(timer);
|
|
58
74
|
await withWorkingDirectory(libOutDir, async () => {
|
|
59
75
|
relinka("log", `Publishing lib ${libName} to JSR from ${libOutDir}`);
|
|
@@ -77,6 +93,10 @@ async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, dis
|
|
|
77
93
|
} catch (error) {
|
|
78
94
|
if (timer) resumePerfTimer(timer);
|
|
79
95
|
throw error;
|
|
96
|
+
} finally {
|
|
97
|
+
if (isDev && bunDirCreated) {
|
|
98
|
+
await fs.remove(bunDir);
|
|
99
|
+
}
|
|
80
100
|
}
|
|
81
101
|
}
|
|
82
102
|
async function library_pubToNpm(libOutDir, distJsrDryRun, _distJsrFailOnWarn, libName, _isDev, timer) {
|
|
@@ -2,7 +2,7 @@ import type { PerfTimer } from "../sdk-types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Publishes the JSR distribution.
|
|
4
4
|
*/
|
|
5
|
-
export declare function regular_pubToJsr(distJsrDryRun: boolean, distJsrFailOnWarn: boolean,
|
|
5
|
+
export declare function regular_pubToJsr(distJsrDryRun: boolean, distJsrFailOnWarn: boolean, isDev: boolean, commonPubPause: boolean, distJsrDirName: string, distJsrAllowDirty: boolean, distJsrSlowTypes: boolean, timer: PerfTimer): Promise<void>;
|
|
6
6
|
/**
|
|
7
7
|
* Publishes the NPM distribution.
|
|
8
8
|
*/
|
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import path from "@reliverse/pathkit";
|
|
2
|
+
import fs from "@reliverse/relifso";
|
|
2
3
|
import { relinka } from "@reliverse/relinka";
|
|
3
4
|
import { execaCommand } from "execa";
|
|
4
5
|
import { PROJECT_ROOT } from "../utils/utils-consts.js";
|
|
5
6
|
import { withWorkingDirectory } from "../utils/utils-error-cwd.js";
|
|
7
|
+
import { writeFileSafe } from "../utils/utils-fs.js";
|
|
6
8
|
import { pausePerfTimer, resumePerfTimer } from "../utils/utils-perf.js";
|
|
7
|
-
export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn,
|
|
9
|
+
export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, isDev, commonPubPause, distJsrDirName, distJsrAllowDirty, distJsrSlowTypes, timer) {
|
|
8
10
|
try {
|
|
9
11
|
if (!commonPubPause) {
|
|
10
12
|
relinka("log", "Publishing to JSR...");
|
|
11
13
|
const distJsrDirNameResolved = path.resolve(PROJECT_ROOT, distJsrDirName);
|
|
14
|
+
let bunDirCreated = false;
|
|
15
|
+
const bunDir = "node_modules/bun";
|
|
16
|
+
const bunPkgPath = `${bunDir}/package.json`;
|
|
17
|
+
if (isDev) {
|
|
18
|
+
if (!await fs.pathExists(bunPkgPath)) {
|
|
19
|
+
await fs.ensureDir(bunDir);
|
|
20
|
+
await writeFileSafe(
|
|
21
|
+
bunPkgPath,
|
|
22
|
+
'{\n "name": "bun"\n}',
|
|
23
|
+
"Create bun package.json for dev publish"
|
|
24
|
+
);
|
|
25
|
+
bunDirCreated = true;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
12
28
|
if (timer) pausePerfTimer(timer);
|
|
13
29
|
await withWorkingDirectory(distJsrDirNameResolved, async () => {
|
|
14
30
|
const command = [
|
|
@@ -25,6 +41,9 @@ export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, _isDev,
|
|
|
25
41
|
});
|
|
26
42
|
await new Promise((resolve) => setTimeout(resolve, 2e3));
|
|
27
43
|
if (timer) resumePerfTimer(timer);
|
|
44
|
+
if (isDev && bunDirCreated) {
|
|
45
|
+
await fs.remove(bunDir);
|
|
46
|
+
}
|
|
28
47
|
}
|
|
29
48
|
} catch (error) {
|
|
30
49
|
if (timer) resumePerfTimer(timer);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { re } from "@reliverse/relico";
|
|
2
2
|
import { relinka } from "@reliverse/relinka";
|
|
3
|
-
import { deleteLastLines } from "@reliverse/rempts";
|
|
4
3
|
import { ExecaError } from "execa";
|
|
5
4
|
export function handleDlerError(error) {
|
|
6
5
|
let rootCause = "";
|
|
7
6
|
if (error instanceof ExecaError) {
|
|
8
7
|
rootCause = error.message;
|
|
9
|
-
deleteLastLines(8);
|
|
10
8
|
} else if (error instanceof Error) {
|
|
11
9
|
rootCause = error.message;
|
|
12
10
|
}
|