@fedify/init 2.0.0-dev.380 → 2.0.0-dev.382
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/dist/command.d.ts +0 -9
- package/dist/command.js +2 -5
- package/dist/deno.js +1 -1
- package/package.json +3 -3
package/dist/command.d.ts
CHANGED
|
@@ -9,9 +9,6 @@ declare const initOptions: _optique_core0.Parser<"sync", {
|
|
|
9
9
|
readonly kvStore: "denokv" | "redis" | "postgres";
|
|
10
10
|
readonly messageQueue: "denokv" | "redis" | "postgres" | "amqp";
|
|
11
11
|
readonly dryRun: boolean;
|
|
12
|
-
readonly debugOption: {
|
|
13
|
-
readonly debug: boolean;
|
|
14
|
-
};
|
|
15
12
|
}, {
|
|
16
13
|
readonly dir: [_optique_core0.ValueParserResult<string>];
|
|
17
14
|
readonly webFramework: [_optique_core0.ValueParserResult<"hono" | "nitro" | "next" | "elysia" | "express">];
|
|
@@ -19,9 +16,6 @@ declare const initOptions: _optique_core0.Parser<"sync", {
|
|
|
19
16
|
readonly kvStore: [_optique_core0.ValueParserResult<"denokv" | "redis" | "postgres">];
|
|
20
17
|
readonly messageQueue: [_optique_core0.ValueParserResult<"denokv" | "redis" | "postgres" | "amqp">];
|
|
21
18
|
readonly dryRun: _optique_core0.ValueParserResult<boolean>;
|
|
22
|
-
readonly debugOption: {
|
|
23
|
-
readonly debug: _optique_core0.ValueParserResult<boolean>;
|
|
24
|
-
};
|
|
25
19
|
}>;
|
|
26
20
|
declare const initCommand: _optique_core0.Parser<"sync", {
|
|
27
21
|
readonly dir: string;
|
|
@@ -30,9 +24,6 @@ declare const initCommand: _optique_core0.Parser<"sync", {
|
|
|
30
24
|
readonly kvStore: "denokv" | "redis" | "postgres";
|
|
31
25
|
readonly messageQueue: "denokv" | "redis" | "postgres" | "amqp";
|
|
32
26
|
readonly dryRun: boolean;
|
|
33
|
-
readonly debugOption: {
|
|
34
|
-
readonly debug: boolean;
|
|
35
|
-
};
|
|
36
27
|
} & {
|
|
37
28
|
readonly command: "init";
|
|
38
29
|
}, ["matched", string] | ["parsing", Record<string | symbol, unknown>]>;
|
package/dist/command.js
CHANGED
|
@@ -7,15 +7,13 @@ const webFramework = optional(option("-w", "--web-framework", choice(WEB_FRAMEWO
|
|
|
7
7
|
const packageManager = optional(option("-p", "--package-manager", choice(PACKAGE_MANAGER, { metavar: "PACKAGE_MANAGER" }), { description: message`The package manager to use for installing dependencies.` }));
|
|
8
8
|
const kvStore = optional(option("-k", "--kv-store", choice(KV_STORE, { metavar: "KV_STORE" }), { description: message`The key-value store to use for caching and some other features.` }));
|
|
9
9
|
const messageQueue = optional(option("-m", "--message-queue", choice(MESSAGE_QUEUE, { metavar: "MESSAGE_QUEUE" }), { description: message`The message queue to use for background tasks.` }));
|
|
10
|
-
const debugOption = object("Global options", { debug: option("-d", "--debug", { description: message`Enable debug mode.` }) });
|
|
11
10
|
const initOptions = object("Initialization options", {
|
|
12
11
|
dir: optional(argument(path({ metavar: "DIR" }), { description: message`The project directory to initialize. If a specified directory does not exist, it will be created.` })),
|
|
13
12
|
webFramework,
|
|
14
13
|
packageManager,
|
|
15
14
|
kvStore,
|
|
16
15
|
messageQueue,
|
|
17
|
-
dryRun: option("--dry-run", { description: message`Perform a trial run with no changes made.` })
|
|
18
|
-
debugOption
|
|
16
|
+
dryRun: option("--dry-run", { description: message`Perform a trial run with no changes made.` })
|
|
19
17
|
});
|
|
20
18
|
const initCommand = command("init", merge(initOptions, object({ command: constant("init") })), {
|
|
21
19
|
brief: message`Initialize a new Fedify project directory.`,
|
|
@@ -31,8 +29,7 @@ const testInitCommand = command("test-init", merge(object("Initialization option
|
|
|
31
29
|
webFramework: multiple(webFramework),
|
|
32
30
|
packageManager: multiple(packageManager),
|
|
33
31
|
kvStore: multiple(kvStore),
|
|
34
|
-
messageQueue: multiple(messageQueue)
|
|
35
|
-
debugOption
|
|
32
|
+
messageQueue: multiple(messageQueue)
|
|
36
33
|
}), optional(or(noHydRun, noDryRun))), {
|
|
37
34
|
brief: message`Test an initializing command.`,
|
|
38
35
|
description: message`Test an initializing command on temporary directories.
|
package/dist/deno.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/init",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.382+d539ef4a",
|
|
4
4
|
"description": "Project initializer for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@fxts/core": "^1.20.0",
|
|
52
52
|
"@inquirer/prompts": "^7.8.4",
|
|
53
53
|
"@logtape/logtape": "^2.0.0",
|
|
54
|
-
"@optique/core": "^0.10.
|
|
55
|
-
"@optique/run": "^0.10.
|
|
54
|
+
"@optique/core": "^0.10.1",
|
|
55
|
+
"@optique/run": "^0.10.1",
|
|
56
56
|
"chalk": "^5.6.2",
|
|
57
57
|
"es-toolkit": "1.43.0",
|
|
58
58
|
"inquirer-toggle": "^1.0.1"
|