@reliverse/dler 1.7.101 → 1.7.102
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/LICENSE +1 -1
- package/LICENSES +1 -1
- package/README.md +9 -12
- package/bin/app/better/auth/cmd.js +6 -5
- package/bin/app/build/postbuild.js +6 -4
- package/bin/app/build/prebuild.js +6 -3
- package/bin/app/cli/impl.d.ts +1 -3
- package/bin/app/cli/impl.js +5 -5
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/init/init-utils/mm-deprecated/editor-menu.js +6 -5
- package/bin/app/providers/better-t-stack/helpers/project-generation/create-readme.js +27 -27
- package/bin/app/providers/better-t-stack/helpers/project-generation/post-installation.js +22 -22
- package/bin/app/providers/better-t-stack/types.d.ts +10 -10
- package/bin/app/providers/cmd.d.ts +74 -0
- package/bin/app/providers/{better-t-stack/index.js → cmd.js} +119 -102
- package/bin/app/rempts/cmd.js +2 -2
- package/bin/dler-go +1 -1
- package/bin/dler-rust +1 -1
- package/bin/dler.js +17 -7
- package/package.json +5 -5
- package/bin/app/cmds.d.ts +0 -315
- package/bin/app/cmds.js +0 -61
- package/bin/app/providers/better-t-stack/index.d.ts +0 -2
|
@@ -4,42 +4,23 @@ import fs from "@reliverse/relifso";
|
|
|
4
4
|
import { relinka } from "@reliverse/relinka";
|
|
5
5
|
import {
|
|
6
6
|
cancel,
|
|
7
|
-
createCli,
|
|
8
7
|
defineCommand,
|
|
9
8
|
intro,
|
|
10
9
|
isCancel,
|
|
11
10
|
outro,
|
|
12
11
|
selectPrompt,
|
|
13
|
-
spinner
|
|
14
|
-
trpcServer,
|
|
15
|
-
zod as z
|
|
12
|
+
spinner
|
|
16
13
|
} from "@reliverse/rempts";
|
|
17
|
-
import { DEFAULT_CONFIG } from "./constants.js";
|
|
18
|
-
import { createProject } from "./helpers/project-generation/create-project.js";
|
|
19
|
-
import { gatherConfig } from "./prompts/config-prompts.js";
|
|
20
|
-
import { getProjectName } from "./prompts/project-name.js";
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ExamplesSchema,
|
|
28
|
-
FrontendSchema,
|
|
29
|
-
ORMSchema,
|
|
30
|
-
PackageManagerSchema,
|
|
31
|
-
ProjectNameSchema,
|
|
32
|
-
RuntimeSchema
|
|
33
|
-
} from "./types.js";
|
|
34
|
-
import { trackProjectCreation } from "./utils/analytics.js";
|
|
35
|
-
import { displayConfig } from "./utils/display-config.js";
|
|
36
|
-
import { generateReproducibleCommand } from "./utils/generate-reproducible-command.js";
|
|
37
|
-
import { getLatestCLIVersion } from "./utils/get-latest-cli-version.js";
|
|
38
|
-
import { openUrl } from "./utils/open-url.js";
|
|
39
|
-
import { renderTitle } from "./utils/render-title.js";
|
|
40
|
-
import { displaySponsors, fetchSponsors } from "./utils/sponsors.js";
|
|
41
|
-
import { getProvidedFlags, processAndValidateFlags } from "./validation.js";
|
|
42
|
-
const t = trpcServer.initTRPC.create();
|
|
14
|
+
import { DEFAULT_CONFIG } from "./better-t-stack/constants.js";
|
|
15
|
+
import { createProject } from "./better-t-stack/helpers/project-generation/create-project.js";
|
|
16
|
+
import { gatherConfig } from "./better-t-stack/prompts/config-prompts.js";
|
|
17
|
+
import { getProjectName } from "./better-t-stack/prompts/project-name.js";
|
|
18
|
+
import { trackProjectCreation } from "./better-t-stack/utils/analytics.js";
|
|
19
|
+
import { displayConfig } from "./better-t-stack/utils/display-config.js";
|
|
20
|
+
import { generateReproducibleCommand } from "./better-t-stack/utils/generate-reproducible-command.js";
|
|
21
|
+
import { getLatestCLIVersion } from "./better-t-stack/utils/get-latest-cli-version.js";
|
|
22
|
+
import { renderTitle } from "./better-t-stack/utils/render-title.js";
|
|
23
|
+
import { getProvidedFlags, processAndValidateFlags } from "./better-t-stack/validation.js";
|
|
43
24
|
async function handleDirectoryConflict(currentPathInput) {
|
|
44
25
|
while (true) {
|
|
45
26
|
const resolvedPath = path.resolve(process.cwd(), currentPathInput);
|
|
@@ -205,78 +186,114 @@ ${reproducibleCommand}`)
|
|
|
205
186
|
process.exit(1);
|
|
206
187
|
}
|
|
207
188
|
}
|
|
208
|
-
const router = t.router({
|
|
209
|
-
init: t.procedure.meta({
|
|
210
|
-
description: "Create a new Better-T Stack project",
|
|
211
|
-
default: true
|
|
212
|
-
}).input(
|
|
213
|
-
z.tuple([
|
|
214
|
-
ProjectNameSchema.optional(),
|
|
215
|
-
z.object({
|
|
216
|
-
yes: z.boolean().optional().default(false).describe("Use default configuration"),
|
|
217
|
-
database: DatabaseSchema.optional(),
|
|
218
|
-
orm: ORMSchema.optional(),
|
|
219
|
-
auth: z.boolean().optional(),
|
|
220
|
-
frontend: z.array(FrontendSchema).optional(),
|
|
221
|
-
addons: z.array(AddonsSchema).optional(),
|
|
222
|
-
examples: z.array(ExamplesSchema).optional(),
|
|
223
|
-
git: z.boolean().optional(),
|
|
224
|
-
packageManager: PackageManagerSchema.optional(),
|
|
225
|
-
install: z.boolean().optional(),
|
|
226
|
-
dbSetup: DatabaseSetupSchema.optional(),
|
|
227
|
-
backend: BackendSchema.optional(),
|
|
228
|
-
runtime: RuntimeSchema.optional(),
|
|
229
|
-
api: APISchema.optional()
|
|
230
|
-
}).optional().default({ yes: false })
|
|
231
|
-
])
|
|
232
|
-
).mutation(async ({ input }) => {
|
|
233
|
-
const [projectName, options] = input;
|
|
234
|
-
const combinedInput = {
|
|
235
|
-
projectName,
|
|
236
|
-
...options
|
|
237
|
-
};
|
|
238
|
-
await createProjectHandler(combinedInput);
|
|
239
|
-
}),
|
|
240
|
-
sponsors: t.procedure.meta({ description: "Show Better-T Stack sponsors" }).mutation(async () => {
|
|
241
|
-
try {
|
|
242
|
-
renderTitle();
|
|
243
|
-
intro(re.magenta("Better-T Stack Sponsors"));
|
|
244
|
-
const sponsors = await fetchSponsors();
|
|
245
|
-
displaySponsors(sponsors);
|
|
246
|
-
} catch (error) {
|
|
247
|
-
relinka("error", String(error));
|
|
248
|
-
process.exit(1);
|
|
249
|
-
}
|
|
250
|
-
}),
|
|
251
|
-
docs: t.procedure.meta({ description: "Open Better-T Stack documentation" }).mutation(async () => {
|
|
252
|
-
const DOCS_URL = "https://better-t-stack.dev/docs";
|
|
253
|
-
try {
|
|
254
|
-
await openUrl(DOCS_URL);
|
|
255
|
-
relinka("success", re.blue("Opened docs in your default browser."));
|
|
256
|
-
} catch {
|
|
257
|
-
relinka("log", `Please visit ${DOCS_URL}`);
|
|
258
|
-
}
|
|
259
|
-
}),
|
|
260
|
-
builder: t.procedure.meta({ description: "Open the web-based stack builder" }).mutation(async () => {
|
|
261
|
-
const BUILDER_URL = "https://better-t-stack.dev/new";
|
|
262
|
-
try {
|
|
263
|
-
await openUrl(BUILDER_URL);
|
|
264
|
-
relinka("success", re.blue("Opened builder in your default browser."));
|
|
265
|
-
} catch {
|
|
266
|
-
relinka("log", `Please visit ${BUILDER_URL}`);
|
|
267
|
-
}
|
|
268
|
-
})
|
|
269
|
-
});
|
|
270
189
|
export default defineCommand({
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
190
|
+
meta: {
|
|
191
|
+
name: "create-better-t-stack",
|
|
192
|
+
version: getLatestCLIVersion(),
|
|
193
|
+
description: "Create a new Better-T Stack project"
|
|
194
|
+
},
|
|
195
|
+
args: {
|
|
196
|
+
projectName: {
|
|
197
|
+
type: "string",
|
|
198
|
+
description: "Project name or path"
|
|
199
|
+
},
|
|
200
|
+
yes: {
|
|
201
|
+
type: "boolean",
|
|
202
|
+
description: "Use default configuration",
|
|
203
|
+
default: false
|
|
204
|
+
},
|
|
205
|
+
database: {
|
|
206
|
+
type: "string",
|
|
207
|
+
description: "Database type",
|
|
208
|
+
allowed: ["none", "sqlite", "postgres", "mysql", "mongodb"]
|
|
209
|
+
},
|
|
210
|
+
orm: {
|
|
211
|
+
type: "string",
|
|
212
|
+
description: "ORM type",
|
|
213
|
+
allowed: ["drizzle", "prisma", "mongoose", "none"]
|
|
214
|
+
},
|
|
215
|
+
auth: {
|
|
216
|
+
type: "boolean",
|
|
217
|
+
description: "Enable authentication"
|
|
218
|
+
},
|
|
219
|
+
frontend: {
|
|
220
|
+
type: "array",
|
|
221
|
+
description: "Frontend frameworks",
|
|
222
|
+
allowed: [
|
|
223
|
+
"tanstack-router",
|
|
224
|
+
"react-router",
|
|
225
|
+
"tanstack-start",
|
|
226
|
+
"next",
|
|
227
|
+
"nuxt",
|
|
228
|
+
"native-nativewind",
|
|
229
|
+
"native-unistyles",
|
|
230
|
+
"svelte",
|
|
231
|
+
"solid",
|
|
232
|
+
"none"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
addons: {
|
|
236
|
+
type: "array",
|
|
237
|
+
description: "Additional addons",
|
|
238
|
+
allowed: ["pwa", "tauri", "starlight", "biome", "husky", "turborepo", "none"]
|
|
239
|
+
},
|
|
240
|
+
examples: {
|
|
241
|
+
type: "array",
|
|
242
|
+
description: "Example templates",
|
|
243
|
+
allowed: ["todo", "ai", "none"]
|
|
244
|
+
},
|
|
245
|
+
git: {
|
|
246
|
+
type: "boolean",
|
|
247
|
+
description: "Initialize git repository"
|
|
248
|
+
},
|
|
249
|
+
packageManager: {
|
|
250
|
+
type: "string",
|
|
251
|
+
description: "Package manager",
|
|
252
|
+
allowed: ["npm", "pnpm", "bun"]
|
|
253
|
+
},
|
|
254
|
+
install: {
|
|
255
|
+
type: "boolean",
|
|
256
|
+
description: "Install dependencies"
|
|
257
|
+
},
|
|
258
|
+
dbSetup: {
|
|
259
|
+
type: "string",
|
|
260
|
+
description: "Database setup",
|
|
261
|
+
allowed: ["turso", "neon", "prisma-postgres", "mongodb-atlas", "supabase", "none"]
|
|
262
|
+
},
|
|
263
|
+
backend: {
|
|
264
|
+
type: "string",
|
|
265
|
+
description: "Backend framework",
|
|
266
|
+
allowed: ["hono", "express", "fastify", "next", "elysia", "convex", "none"]
|
|
267
|
+
},
|
|
268
|
+
runtime: {
|
|
269
|
+
type: "string",
|
|
270
|
+
description: "Runtime environment",
|
|
271
|
+
allowed: ["bun", "node", "workers", "none"]
|
|
272
|
+
},
|
|
273
|
+
api: {
|
|
274
|
+
type: "string",
|
|
275
|
+
description: "API type",
|
|
276
|
+
allowed: ["trpc", "orpc", "none"]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
async run({ args }) {
|
|
280
|
+
const input = {
|
|
281
|
+
projectName: args.projectName,
|
|
282
|
+
yes: args.yes,
|
|
283
|
+
database: args.database,
|
|
284
|
+
orm: args.orm,
|
|
285
|
+
auth: args.auth,
|
|
286
|
+
frontend: args.frontend,
|
|
287
|
+
addons: args.addons,
|
|
288
|
+
examples: args.examples,
|
|
289
|
+
git: args.git,
|
|
290
|
+
packageManager: args.packageManager,
|
|
291
|
+
install: args.install,
|
|
292
|
+
dbSetup: args.dbSetup,
|
|
293
|
+
backend: args.backend,
|
|
294
|
+
runtime: args.runtime,
|
|
295
|
+
api: args.api
|
|
296
|
+
};
|
|
297
|
+
await createProjectHandler(input);
|
|
274
298
|
}
|
|
275
299
|
});
|
|
276
|
-
createCli({
|
|
277
|
-
name: "create-better-t-stack",
|
|
278
|
-
version: getLatestCLIVersion(),
|
|
279
|
-
rpc: {
|
|
280
|
-
router
|
|
281
|
-
}
|
|
282
|
-
}).run();
|
package/bin/app/rempts/cmd.js
CHANGED
|
@@ -142,9 +142,9 @@ export default defineCommand({
|
|
|
142
142
|
relinka(
|
|
143
143
|
"log",
|
|
144
144
|
`Usage example:
|
|
145
|
-
import { getCmdName } from "../cmds
|
|
145
|
+
import { getCmdName } from "../cmds";
|
|
146
146
|
const cmd = await getCmdName();
|
|
147
|
-
await
|
|
147
|
+
await callCmd(cmd, [
|
|
148
148
|
// String arguments
|
|
149
149
|
"--name=my-project",
|
|
150
150
|
"--path=./src",
|
package/bin/dler-go
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
echo "Dler postinstall step not performed."
|
|
3
|
-
echo "The postinstall replaces this placeholder script with a native binary for your operating system, making Dler lightning fast. If you see this message, it means you didn't run the postinstall step, or your package manager blocked running it."
|
|
3
|
+
echo "The postinstall replaces this placeholder script with a native Go binary for your operating system, making Dler lightning fast. If you see this message, it means you didn't run the postinstall step, or your package manager blocked running it."
|
|
4
4
|
exit 1
|
package/bin/dler-rust
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
echo "Dler postinstall step not performed."
|
|
3
|
-
echo "The postinstall replaces this placeholder script with a native binary for your operating system, making Dler lightning fast. If you see this message, it means you didn't run the postinstall step, or your package manager blocked running it."
|
|
3
|
+
echo "The postinstall replaces this placeholder script with a native Rust binary for your operating system, making Dler lightning fast. If you see this message, it means you didn't run the postinstall step, or your package manager blocked running it."
|
|
4
4
|
exit 1
|
package/bin/dler.js
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import { relinka } from "@reliverse/relinka";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
callCmd,
|
|
4
|
+
defineArgs,
|
|
5
|
+
defineCommand,
|
|
6
|
+
runMain,
|
|
7
|
+
selectPrompt,
|
|
8
|
+
showUsage
|
|
9
|
+
} from "@reliverse/rempts";
|
|
10
|
+
import { default as buildCmd } from "./app/build/cmd.js";
|
|
4
11
|
import { prepareDlerEnvironment } from "./app/config/prepare.js";
|
|
5
12
|
import {
|
|
6
13
|
showEndPrompt,
|
|
7
14
|
showStartPrompt
|
|
8
15
|
} from "./app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js";
|
|
16
|
+
import { default as pubCmd } from "./app/pub/cmd.js";
|
|
17
|
+
import { default as updateCmd } from "./app/update/cmd.js";
|
|
18
|
+
import { default as upgradeCmd } from "./app/upgrade/cmd.js";
|
|
9
19
|
import { promptAggCommand } from "./app/utils/agg/agg-1.js";
|
|
10
20
|
const MENU_CMDS = ["agg", "build", "pub", "update"];
|
|
11
21
|
let isDev = process.env.DLER_DEV_MODE === "true";
|
|
12
22
|
const main = defineCommand({
|
|
13
23
|
meta: {
|
|
14
24
|
name: "dler",
|
|
15
|
-
version: "1.7.
|
|
25
|
+
version: "1.7.102",
|
|
16
26
|
description: `Displays dler's command menu.
|
|
17
27
|
To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
|
|
18
28
|
Available menu commands: ${MENU_CMDS.join(", ")}`
|
|
@@ -64,19 +74,19 @@ Available menu commands: ${MENU_CMDS.join(", ")}`
|
|
|
64
74
|
});
|
|
65
75
|
switch (cmdToRun) {
|
|
66
76
|
case "build": {
|
|
67
|
-
await callCmd(
|
|
77
|
+
await callCmd(buildCmd, { dev: isDev });
|
|
68
78
|
break;
|
|
69
79
|
}
|
|
70
80
|
case "pub": {
|
|
71
|
-
await callCmd(
|
|
81
|
+
await callCmd(pubCmd, { dev: isDev });
|
|
72
82
|
break;
|
|
73
83
|
}
|
|
74
84
|
case "update": {
|
|
75
|
-
await callCmd(
|
|
85
|
+
await callCmd(updateCmd, {});
|
|
76
86
|
break;
|
|
77
87
|
}
|
|
78
88
|
case "upgrade": {
|
|
79
|
-
await callCmd(
|
|
89
|
+
await callCmd(upgradeCmd, {});
|
|
80
90
|
break;
|
|
81
91
|
}
|
|
82
92
|
case "agg": {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"@ai-sdk/openai": "^2.0.19",
|
|
4
4
|
"@hookform/resolvers": "^5.2.1",
|
|
5
5
|
"@libsql/client": "^0.15.12",
|
|
6
|
-
"@mendable/firecrawl-js": "^3.
|
|
6
|
+
"@mendable/firecrawl-js": "^3.2.0",
|
|
7
7
|
"@octokit/plugin-rest-endpoint-methods": "^16.0.0",
|
|
8
8
|
"@octokit/request-error": "^7.0.0",
|
|
9
9
|
"@octokit/rest": "^22.0.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@reliverse/relico": "^1.3.5",
|
|
17
17
|
"@reliverse/relifso": "^1.4.5",
|
|
18
18
|
"@reliverse/relinka": "^1.5.6",
|
|
19
|
-
"@reliverse/rempts": "^1.7.
|
|
19
|
+
"@reliverse/rempts": "^1.7.52",
|
|
20
20
|
"@reliverse/runtime": "^1.0.3",
|
|
21
21
|
"@rollup/plugin-alias": "^5.1.1",
|
|
22
22
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"react-hook-form": "^7.62.0",
|
|
87
87
|
"registry-auth-token": "^5.1.0",
|
|
88
88
|
"registry-url": "^7.2.0",
|
|
89
|
-
"rollup": "^4.
|
|
89
|
+
"rollup": "^4.48.0",
|
|
90
90
|
"rollup-plugin-dts": "^6.2.3",
|
|
91
91
|
"scule": "^1.3.0",
|
|
92
92
|
"semver": "^7.7.2",
|
|
@@ -103,14 +103,14 @@
|
|
|
103
103
|
"uncrypto": "^0.1.3",
|
|
104
104
|
"untyped": "^2.0.0",
|
|
105
105
|
"uploadthing": "^7.7.4",
|
|
106
|
-
"zod": "4.
|
|
106
|
+
"zod": "^4.1.1"
|
|
107
107
|
},
|
|
108
108
|
"description": "dler (prev. relidler) is a flexible, unified, and fully automated bundler for TypeScript and JavaScript projects, as well as an NPM and JSR publishing tool.",
|
|
109
109
|
"homepage": "https://docs.reliverse.org/cli",
|
|
110
110
|
"license": "MIT",
|
|
111
111
|
"name": "@reliverse/dler",
|
|
112
112
|
"type": "module",
|
|
113
|
-
"version": "1.7.
|
|
113
|
+
"version": "1.7.102",
|
|
114
114
|
"keywords": [
|
|
115
115
|
"reliverse",
|
|
116
116
|
"cli",
|
package/bin/app/cmds.d.ts
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import type { Command } from "@reliverse/rempts";
|
|
2
|
-
interface CommandArgsMap {
|
|
3
|
-
add: {};
|
|
4
|
-
agg: {
|
|
5
|
-
imports?: boolean;
|
|
6
|
-
input?: string;
|
|
7
|
-
named?: boolean;
|
|
8
|
-
out?: string;
|
|
9
|
-
recursive?: boolean;
|
|
10
|
-
strip?: string;
|
|
11
|
-
sort?: boolean;
|
|
12
|
-
header?: string;
|
|
13
|
-
verbose?: boolean;
|
|
14
|
-
includeInternal?: boolean;
|
|
15
|
-
internalMarker?: string;
|
|
16
|
-
override?: boolean;
|
|
17
|
-
extensions?: string;
|
|
18
|
-
separateTypesFile?: boolean;
|
|
19
|
-
typesOut?: string;
|
|
20
|
-
nonInteractive?: boolean;
|
|
21
|
-
};
|
|
22
|
-
ai: {};
|
|
23
|
-
better_auth: {
|
|
24
|
-
config: string;
|
|
25
|
-
schema: string;
|
|
26
|
-
};
|
|
27
|
-
better_auth_generate: {};
|
|
28
|
-
better_auth_generateSecret: {};
|
|
29
|
-
better_auth_init: {};
|
|
30
|
-
better_auth_migrate: {
|
|
31
|
-
cwd?: string;
|
|
32
|
-
config?: string;
|
|
33
|
-
y?: boolean;
|
|
34
|
-
};
|
|
35
|
-
build: {
|
|
36
|
-
dev?: boolean;
|
|
37
|
-
debugOnlyCopyNonBuildFiles?: boolean;
|
|
38
|
-
debugDontCopyNonBuildFiles?: boolean;
|
|
39
|
-
};
|
|
40
|
-
build_binary: {
|
|
41
|
-
input: string;
|
|
42
|
-
targets?: string;
|
|
43
|
-
outdir?: string;
|
|
44
|
-
minify?: boolean;
|
|
45
|
-
sourcemap?: boolean;
|
|
46
|
-
bytecode?: boolean;
|
|
47
|
-
clean?: boolean;
|
|
48
|
-
parallel?: boolean;
|
|
49
|
-
external?: string[];
|
|
50
|
-
};
|
|
51
|
-
catalog: {
|
|
52
|
-
action?: string;
|
|
53
|
-
cwd?: string;
|
|
54
|
-
};
|
|
55
|
-
check: {
|
|
56
|
-
dev?: boolean;
|
|
57
|
-
directory?: string;
|
|
58
|
-
checks?: string;
|
|
59
|
-
strict?: boolean;
|
|
60
|
-
json?: boolean;
|
|
61
|
-
deps?: boolean;
|
|
62
|
-
all?: boolean;
|
|
63
|
-
ignore?: string;
|
|
64
|
-
builtins?: boolean;
|
|
65
|
-
peer?: boolean;
|
|
66
|
-
optional?: boolean;
|
|
67
|
-
fix?: boolean;
|
|
68
|
-
depth?: number;
|
|
69
|
-
};
|
|
70
|
-
cli: {};
|
|
71
|
-
clone: {};
|
|
72
|
-
cmod: {};
|
|
73
|
-
config: {
|
|
74
|
-
mode?: string;
|
|
75
|
-
tool?: string;
|
|
76
|
-
update?: boolean;
|
|
77
|
-
};
|
|
78
|
-
conv: {};
|
|
79
|
-
create: {
|
|
80
|
-
template?: string;
|
|
81
|
-
mode?: "template" | "files";
|
|
82
|
-
fileType?: string;
|
|
83
|
-
destDir?: string;
|
|
84
|
-
multiple?: boolean;
|
|
85
|
-
parallel?: boolean;
|
|
86
|
-
concurrency?: string;
|
|
87
|
-
cwd?: string;
|
|
88
|
-
};
|
|
89
|
-
env: {};
|
|
90
|
-
fs: {
|
|
91
|
-
mode: "copy" | "rm" | "rename";
|
|
92
|
-
target: string;
|
|
93
|
-
nonInteractive?: boolean;
|
|
94
|
-
source?: string;
|
|
95
|
-
destination?: string;
|
|
96
|
-
recursive?: boolean;
|
|
97
|
-
preserveStructure?: boolean;
|
|
98
|
-
increment?: boolean;
|
|
99
|
-
concurrency?: number;
|
|
100
|
-
gitignore?: boolean;
|
|
101
|
-
prepareMyCLI?: boolean;
|
|
102
|
-
revert?: boolean;
|
|
103
|
-
useDtsTxtForPrepareMyCLI?: boolean;
|
|
104
|
-
};
|
|
105
|
-
get: {};
|
|
106
|
-
help: {};
|
|
107
|
-
init: {};
|
|
108
|
-
inject: {};
|
|
109
|
-
install: {
|
|
110
|
-
action?: string;
|
|
111
|
-
name?: string;
|
|
112
|
-
global?: boolean;
|
|
113
|
-
cwd?: string;
|
|
114
|
-
workspace?: boolean;
|
|
115
|
-
silent?: boolean;
|
|
116
|
-
recreateLockFile?: boolean;
|
|
117
|
-
linter?: boolean;
|
|
118
|
-
filter?: string[];
|
|
119
|
-
};
|
|
120
|
-
invoke: {};
|
|
121
|
-
libs: {
|
|
122
|
-
init: string;
|
|
123
|
-
overwrite?: boolean;
|
|
124
|
-
};
|
|
125
|
-
login: {};
|
|
126
|
-
logout: {};
|
|
127
|
-
magic: {
|
|
128
|
-
targets: string[];
|
|
129
|
-
lib?: string;
|
|
130
|
-
concurrency?: number;
|
|
131
|
-
batchSize?: number;
|
|
132
|
-
stopOnError?: boolean;
|
|
133
|
-
about?: boolean;
|
|
134
|
-
};
|
|
135
|
-
memory: {};
|
|
136
|
-
merge: {
|
|
137
|
-
s?: string[];
|
|
138
|
-
d?: string;
|
|
139
|
-
ignore?: string[];
|
|
140
|
-
format?: string;
|
|
141
|
-
stdout?: boolean;
|
|
142
|
-
noPath?: boolean;
|
|
143
|
-
pathAbove?: boolean;
|
|
144
|
-
};
|
|
145
|
-
migrate: {
|
|
146
|
-
interactive?: boolean;
|
|
147
|
-
codemod?: string;
|
|
148
|
-
project?: string;
|
|
149
|
-
mrTarget?: string;
|
|
150
|
-
dryRun?: boolean;
|
|
151
|
-
noBackup?: boolean;
|
|
152
|
-
consoleRelinkaInput?: string;
|
|
153
|
-
consoleRelinkaFrom?: string;
|
|
154
|
-
consoleRelinkaTo?: string;
|
|
155
|
-
};
|
|
156
|
-
mkdist: {
|
|
157
|
-
mkdistOnly?: boolean;
|
|
158
|
-
dev?: boolean;
|
|
159
|
-
dir?: string;
|
|
160
|
-
cwd?: string;
|
|
161
|
-
src?: string;
|
|
162
|
-
dist?: string;
|
|
163
|
-
clean?: boolean;
|
|
164
|
-
pattern?: string;
|
|
165
|
-
format?: string;
|
|
166
|
-
declaration?: boolean;
|
|
167
|
-
ext?: string;
|
|
168
|
-
jsx?: string;
|
|
169
|
-
jsxFactory?: string;
|
|
170
|
-
jsxFragment?: string;
|
|
171
|
-
loaders?: string;
|
|
172
|
-
minify?: boolean;
|
|
173
|
-
target?: string;
|
|
174
|
-
};
|
|
175
|
-
mrse: {};
|
|
176
|
-
pack: {
|
|
177
|
-
input: string;
|
|
178
|
-
output?: string;
|
|
179
|
-
whitelabel?: string;
|
|
180
|
-
cdn?: string;
|
|
181
|
-
force?: boolean;
|
|
182
|
-
update?: boolean;
|
|
183
|
-
files?: string;
|
|
184
|
-
lastUpdate?: string;
|
|
185
|
-
unpack?: boolean;
|
|
186
|
-
};
|
|
187
|
-
pub: {
|
|
188
|
-
dev?: boolean;
|
|
189
|
-
};
|
|
190
|
-
remdn: {
|
|
191
|
-
mode?: "dirs-scan-only" | "dirs-scan-compare";
|
|
192
|
-
configPath?: string;
|
|
193
|
-
outputFilePath?: string;
|
|
194
|
-
initConfig?: string;
|
|
195
|
-
};
|
|
196
|
-
remove: {
|
|
197
|
-
action?: string;
|
|
198
|
-
name: string;
|
|
199
|
-
global?: boolean;
|
|
200
|
-
cwd?: string;
|
|
201
|
-
workspace?: boolean;
|
|
202
|
-
silent?: boolean;
|
|
203
|
-
linter?: boolean;
|
|
204
|
-
filter?: string[];
|
|
205
|
-
standalone?: boolean;
|
|
206
|
-
};
|
|
207
|
-
rempts: {
|
|
208
|
-
init?: string;
|
|
209
|
-
overwrite?: boolean;
|
|
210
|
-
customCmdsRoot?: string;
|
|
211
|
-
outFile?: string;
|
|
212
|
-
cmdDirs?: string[];
|
|
213
|
-
};
|
|
214
|
-
schema: {};
|
|
215
|
-
split: {
|
|
216
|
-
directory: string;
|
|
217
|
-
fileLineThreshold: number;
|
|
218
|
-
funcLineThreshold: number;
|
|
219
|
-
};
|
|
220
|
-
studio: {};
|
|
221
|
-
toolbox: {};
|
|
222
|
-
transform: {};
|
|
223
|
-
update: {
|
|
224
|
-
name?: string[];
|
|
225
|
-
ignore?: string[];
|
|
226
|
-
concurrency?: number;
|
|
227
|
-
linker?: "isolated" | "hoisted";
|
|
228
|
-
global?: boolean;
|
|
229
|
-
interactive?: boolean;
|
|
230
|
-
filter?: string[];
|
|
231
|
-
recursive?: boolean;
|
|
232
|
-
};
|
|
233
|
-
update_migrate: {
|
|
234
|
-
interactive?: boolean;
|
|
235
|
-
};
|
|
236
|
-
upgrade: {
|
|
237
|
-
interactive?: boolean;
|
|
238
|
-
};
|
|
239
|
-
upload: {};
|
|
240
|
-
web: {};
|
|
241
|
-
x: {
|
|
242
|
-
action: string;
|
|
243
|
-
name?: string;
|
|
244
|
-
cwd?: string;
|
|
245
|
-
silent?: boolean;
|
|
246
|
-
target?: string;
|
|
247
|
-
timeout?: number;
|
|
248
|
-
throwOnError?: boolean;
|
|
249
|
-
args?: string;
|
|
250
|
-
global?: boolean;
|
|
251
|
-
yes?: boolean;
|
|
252
|
-
bun?: boolean;
|
|
253
|
-
npm?: boolean;
|
|
254
|
-
pnpm?: boolean;
|
|
255
|
-
yarn?: boolean;
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
export declare function loadTypedCommand<T extends keyof CommandArgsMap>(cmdName: T): Promise<Command>;
|
|
259
|
-
export declare const getAddCmd: () => Promise<Command>;
|
|
260
|
-
export declare const getAggCmd: () => Promise<Command>;
|
|
261
|
-
export declare const getAiCmd: () => Promise<Command>;
|
|
262
|
-
export declare const getBetterAuthCmd: () => Promise<Command>;
|
|
263
|
-
export declare const getBetterAuthGenerateCmd: () => Promise<Command>;
|
|
264
|
-
export declare const getBetterAuthGenerateSecretCmd: () => Promise<Command>;
|
|
265
|
-
export declare const getBetterAuthInitCmd: () => Promise<Command>;
|
|
266
|
-
export declare const getBetterAuthMigrateCmd: () => Promise<Command>;
|
|
267
|
-
export declare const getBuildCmd: () => Promise<Command>;
|
|
268
|
-
export declare const getBuildBinaryCmd: () => Promise<Command>;
|
|
269
|
-
export declare const getCatalogCmd: () => Promise<Command>;
|
|
270
|
-
export declare const getCheckCmd: () => Promise<Command>;
|
|
271
|
-
export declare const getCliCmd: () => Promise<Command>;
|
|
272
|
-
export declare const getCloneCmd: () => Promise<Command>;
|
|
273
|
-
export declare const getCmodCmd: () => Promise<Command>;
|
|
274
|
-
export declare const getConfigCmd: () => Promise<Command>;
|
|
275
|
-
export declare const getConvCmd: () => Promise<Command>;
|
|
276
|
-
export declare const getCreateCmd: () => Promise<Command>;
|
|
277
|
-
export declare const getEnvCmd: () => Promise<Command>;
|
|
278
|
-
export declare const getFsCmd: () => Promise<Command>;
|
|
279
|
-
export declare const getGetCmd: () => Promise<Command>;
|
|
280
|
-
export declare const getHelpCmd: () => Promise<Command>;
|
|
281
|
-
export declare const getInitCmd: () => Promise<Command>;
|
|
282
|
-
export declare const getInjectCmd: () => Promise<Command>;
|
|
283
|
-
export declare const getInstallCmd: () => Promise<Command>;
|
|
284
|
-
export declare const getInvokeCmd: () => Promise<Command>;
|
|
285
|
-
export declare const getLibsCmd: () => Promise<Command>;
|
|
286
|
-
export declare const getLoginCmd: () => Promise<Command>;
|
|
287
|
-
export declare const getLogoutCmd: () => Promise<Command>;
|
|
288
|
-
export declare const getMagicCmd: () => Promise<Command>;
|
|
289
|
-
export declare const getMemoryCmd: () => Promise<Command>;
|
|
290
|
-
export declare const getMergeCmd: () => Promise<Command>;
|
|
291
|
-
export declare const getMigrateCmd: () => Promise<Command>;
|
|
292
|
-
export declare const getMkdistCmd: () => Promise<Command>;
|
|
293
|
-
export declare const getMrseCmd: () => Promise<Command>;
|
|
294
|
-
export declare const getPackCmd: () => Promise<Command>;
|
|
295
|
-
export declare const getPubCmd: () => Promise<Command>;
|
|
296
|
-
export declare const getRemdnCmd: () => Promise<Command>;
|
|
297
|
-
export declare const getRemoveCmd: () => Promise<Command>;
|
|
298
|
-
export declare const getRemptsCmd: () => Promise<Command>;
|
|
299
|
-
export declare const getSchemaCmd: () => Promise<Command>;
|
|
300
|
-
export declare const getSplitCmd: () => Promise<Command>;
|
|
301
|
-
export declare const getStudioCmd: () => Promise<Command>;
|
|
302
|
-
export declare const getToolboxCmd: () => Promise<Command>;
|
|
303
|
-
export declare const getTransformCmd: () => Promise<Command>;
|
|
304
|
-
export declare const getUpdateCmd: () => Promise<Command>;
|
|
305
|
-
export declare const getUpdateMigrateCmd: () => Promise<Command>;
|
|
306
|
-
export declare const getUpgradeCmd: () => Promise<Command>;
|
|
307
|
-
export declare const getUploadCmd: () => Promise<Command>;
|
|
308
|
-
export declare const getWebCmd: () => Promise<Command>;
|
|
309
|
-
export declare const getXCmd: () => Promise<Command>;
|
|
310
|
-
export declare function callCmd<T extends keyof CommandArgsMap>(cmdName: T, args?: CommandArgsMap[T]): Promise<void>;
|
|
311
|
-
export declare function getTypedCmd<T extends keyof CommandArgsMap>(cmdName: T): Promise<{
|
|
312
|
-
command: Command;
|
|
313
|
-
run: (args?: CommandArgsMap[T]) => Promise<void>;
|
|
314
|
-
}>;
|
|
315
|
-
export type { CommandArgsMap };
|