@reliverse/dler 1.7.61 → 1.7.62
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/x/cmd.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import path from "@reliverse/pathkit";
|
|
2
2
|
import { relinka } from "@reliverse/relinka";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
defineArgs,
|
|
5
|
+
defineCommand,
|
|
6
|
+
multiselectPrompt,
|
|
7
|
+
runCmd,
|
|
8
|
+
selectPrompt
|
|
9
|
+
} from "@reliverse/rempts";
|
|
10
|
+
import { getCheckCmd } from "../cmds.js";
|
|
4
11
|
import { x } from "../../libs/sdk/sdk-impl/utils/exec/exec-mod.js";
|
|
5
12
|
import { FILE_TYPES } from "../../libs/sdk/sdk-impl/utils/init/init-const.js";
|
|
6
13
|
import { initFile, initFiles } from "../../libs/sdk/sdk-impl/utils/init/init-impl.js";
|
|
@@ -247,7 +254,10 @@ export default defineCommand({
|
|
|
247
254
|
break;
|
|
248
255
|
}
|
|
249
256
|
case "latest": {
|
|
250
|
-
await updateDependencies(true,
|
|
257
|
+
await updateDependencies(true, options);
|
|
258
|
+
if (linter) {
|
|
259
|
+
await runCmd(await getCheckCmd(), ["--no-exit", "--no-progress"]);
|
|
260
|
+
}
|
|
251
261
|
break;
|
|
252
262
|
}
|
|
253
263
|
default: {
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import type { RseConfig } from "./rse-types";
|
|
2
2
|
export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
3
|
+
version?: string | undefined;
|
|
3
4
|
$schema?: "./schema.json" | "https://reliverse.org/schema.json" | undefined;
|
|
4
5
|
projectName?: string | undefined;
|
|
5
6
|
projectAuthor?: string | undefined;
|
|
6
7
|
projectDescription?: string | undefined;
|
|
7
|
-
version?: string | undefined;
|
|
8
8
|
projectLicense?: string | undefined;
|
|
9
9
|
projectRepository?: string | undefined;
|
|
10
10
|
projectDomain?: string | undefined;
|
|
11
11
|
projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
|
|
12
|
-
projectDeployService?: "none" | "
|
|
13
|
-
projectPackageManager?: "npm" | "bun" | "
|
|
14
|
-
projectState?: "
|
|
12
|
+
projectDeployService?: "none" | "deno" | "vercel" | "netlify" | "railway" | undefined;
|
|
13
|
+
projectPackageManager?: "npm" | "bun" | "yarn" | "pnpm" | undefined;
|
|
14
|
+
projectState?: "created" | "creating" | undefined;
|
|
15
15
|
projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
|
|
16
16
|
projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
|
|
17
|
-
projectFramework?: "rempts" | "npm-jsr" | "vue" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "
|
|
17
|
+
projectFramework?: "rempts" | "npm-jsr" | "vue" | "commander" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "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?: {
|
|
21
21
|
commands?: string[] | undefined;
|
|
22
|
+
ci?: boolean | undefined;
|
|
22
23
|
i18n?: boolean | undefined;
|
|
23
24
|
analytics?: boolean | undefined;
|
|
24
25
|
themeMode?: "light" | "dark" | "dark-light" | undefined;
|
|
@@ -27,23 +28,23 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
27
28
|
database?: boolean | undefined;
|
|
28
29
|
testing?: boolean | undefined;
|
|
29
30
|
docker?: boolean | undefined;
|
|
30
|
-
ci?: boolean | undefined;
|
|
31
31
|
webview?: string[] | undefined;
|
|
32
32
|
language?: string[] | undefined;
|
|
33
33
|
themes?: string[] | undefined;
|
|
34
34
|
} | undefined;
|
|
35
35
|
preferredLibraries?: {
|
|
36
|
+
search?: "unknown" | "algolia" | undefined;
|
|
36
37
|
i18n?: "unknown" | "next-intl" | undefined;
|
|
37
38
|
analytics?: "unknown" | "vercel" | undefined;
|
|
38
39
|
authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
|
|
39
|
-
api?: "
|
|
40
|
+
api?: "rest" | "unknown" | "hono" | "trpc" | "graphql" | undefined;
|
|
40
41
|
testing?: "bun" | "unknown" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
|
|
41
42
|
stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
|
|
42
43
|
formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
|
|
43
44
|
styling?: "sass" | "unknown" | "tailwind" | "styled-components" | "css-modules" | undefined;
|
|
44
45
|
uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
|
|
45
46
|
databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
|
|
46
|
-
databaseProvider?: "
|
|
47
|
+
databaseProvider?: "sqlite" | "unknown" | "pg" | "mysql" | "mongodb" | undefined;
|
|
47
48
|
linting?: "eslint" | "unknown" | undefined;
|
|
48
49
|
formatting?: "biome" | "unknown" | undefined;
|
|
49
50
|
payment?: "unknown" | "stripe" | undefined;
|
|
@@ -51,7 +52,6 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
51
52
|
logging?: "unknown" | "axiom" | undefined;
|
|
52
53
|
forms?: "unknown" | "react-hook-form" | undefined;
|
|
53
54
|
notifications?: "unknown" | "sonner" | undefined;
|
|
54
|
-
search?: "unknown" | "algolia" | undefined;
|
|
55
55
|
uploads?: "unknown" | "uploadthing" | undefined;
|
|
56
56
|
validation?: "unknown" | "zod" | "typebox" | "valibot" | undefined;
|
|
57
57
|
documentation?: "unknown" | "starlight" | "nextra" | 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?: "require" | "import" | "mixed" | 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" | "bun" | "
|
|
99
|
+
type?: "none" | "bun" | "pnpm" | "turborepo" | "nx" | 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?: "private" | "public" | "unknown" | 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;
|
|
@@ -72,7 +72,7 @@ export declare function ensureDependencyInstalled(name: string, options?: Pick<O
|
|
|
72
72
|
export declare function dedupeDependencies(options?: Pick<OperationOptions, "cwd" | "silent" | "packageManager"> & {
|
|
73
73
|
recreateLockfile?: boolean;
|
|
74
74
|
}): Promise<void>;
|
|
75
|
-
export declare function updateDependencies(latest?: boolean,
|
|
75
|
+
export declare function updateDependencies(latest?: boolean, options?: OperationOptions): Promise<void>;
|
|
76
76
|
/**
|
|
77
77
|
* Runs a script defined in the package.json file.
|
|
78
78
|
*
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { resolve } from "@reliverse/pathkit";
|
|
2
2
|
import fs from "@reliverse/relifso";
|
|
3
|
-
import { runCmd } from "@reliverse/rempts";
|
|
4
3
|
import { readPackageJSON } from "pkg-types";
|
|
5
|
-
import { getCheckCmd } from "../../../../../app/cmds.js";
|
|
6
4
|
import {
|
|
7
5
|
executeCommand,
|
|
8
6
|
resolveOperationOptions,
|
|
@@ -149,7 +147,7 @@ export async function dedupeDependencies(options = {}) {
|
|
|
149
147
|
}
|
|
150
148
|
throw new Error(`Deduplication is not supported for ${resolvedOptions.packageManager.name}`);
|
|
151
149
|
}
|
|
152
|
-
export async function updateDependencies(latest = true,
|
|
150
|
+
export async function updateDependencies(latest = true, options = {}) {
|
|
153
151
|
const resolvedOptions = await resolveOperationOptions(options);
|
|
154
152
|
await executeCommand(
|
|
155
153
|
resolvedOptions.packageManager.command,
|
|
@@ -159,9 +157,6 @@ export async function updateDependencies(latest = true, linter = false, options
|
|
|
159
157
|
silent: resolvedOptions.silent
|
|
160
158
|
}
|
|
161
159
|
);
|
|
162
|
-
if (linter) {
|
|
163
|
-
await runCmd(await getCheckCmd(), ["--no-exit", "--no-progress"]);
|
|
164
|
-
}
|
|
165
160
|
}
|
|
166
161
|
export async function runScript(name, options = {}) {
|
|
167
162
|
const resolvedOptions = await resolveOperationOptions(options);
|