@fedify/init 2.3.0-dev.1069 → 2.3.0-dev.1099

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.
@@ -56,6 +56,7 @@ async function assertNoGeneratedFileConflicts(data) {
56
56
  if (conflicts.length > 0) throw new GeneratedFileConflictError(conflicts);
57
57
  }
58
58
  var GeneratedFileConflictError = class extends Error {
59
+ conflicts;
59
60
  constructor(conflicts) {
60
61
  super(formatConflictMessage(conflicts));
61
62
  this.conflicts = conflicts;
package/dist/command.d.ts CHANGED
@@ -8,36 +8,36 @@ import { InferValue } from "@optique/core";
8
8
  * `dryRun`, and `allowNonEmpty` options that the CLI parser will accept.
9
9
  */
10
10
  declare const initOptions: _$_optique_core0.Parser<"sync", {
11
- readonly dir: string;
12
- readonly webFramework: "bare-bones" | "hono" | "nitro" | "next" | "elysia" | "astro" | "express" | "nuxt" | "solidstart";
13
- readonly packageManager: "deno" | "pnpm" | "bun" | "yarn" | "npm";
14
- readonly kvStore: "postgres" | "mysql" | "in-memory" | "redis" | "denokv";
15
- readonly messageQueue: "postgres" | "mysql" | "redis" | "denokv" | "in-process" | "amqp";
11
+ readonly dir: string | undefined;
12
+ readonly webFramework: "bare-bones" | "hono" | "nitro" | "next" | "elysia" | "astro" | "express" | "nuxt" | "solidstart" | undefined;
13
+ readonly packageManager: "deno" | "pnpm" | "bun" | "yarn" | "npm" | undefined;
14
+ readonly kvStore: "postgres" | "mysql" | "in-memory" | "redis" | "denokv" | undefined;
15
+ readonly messageQueue: "postgres" | "mysql" | "redis" | "denokv" | "in-process" | "amqp" | undefined;
16
16
  readonly dryRun: boolean;
17
17
  readonly allowNonEmpty: boolean;
18
18
  }, {
19
- readonly dir: [_$_optique_core0.ValueParserResult<string>];
20
- readonly webFramework: [_$_optique_core0.ValueParserResult<"bare-bones" | "hono" | "nitro" | "next" | "elysia" | "astro" | "express" | "nuxt" | "solidstart">];
21
- readonly packageManager: [_$_optique_core0.ValueParserResult<"deno" | "pnpm" | "bun" | "yarn" | "npm">];
22
- readonly kvStore: [_$_optique_core0.ValueParserResult<"postgres" | "mysql" | "in-memory" | "redis" | "denokv">];
23
- readonly messageQueue: [_$_optique_core0.ValueParserResult<"postgres" | "mysql" | "redis" | "denokv" | "in-process" | "amqp">];
24
- readonly dryRun: _$_optique_core0.ValueParserResult<boolean>;
25
- readonly allowNonEmpty: _$_optique_core0.ValueParserResult<boolean>;
19
+ readonly dir: [_$_optique_core0.ValueParserResult<string> | undefined] | undefined;
20
+ readonly webFramework: [_$_optique_core0.ValueParserResult<"bare-bones" | "hono" | "nitro" | "next" | "elysia" | "astro" | "express" | "nuxt" | "solidstart"> | undefined] | undefined;
21
+ readonly packageManager: [_$_optique_core0.ValueParserResult<"deno" | "pnpm" | "bun" | "yarn" | "npm"> | undefined] | undefined;
22
+ readonly kvStore: [_$_optique_core0.ValueParserResult<"postgres" | "mysql" | "in-memory" | "redis" | "denokv"> | undefined] | undefined;
23
+ readonly messageQueue: [_$_optique_core0.ValueParserResult<"postgres" | "mysql" | "redis" | "denokv" | "in-process" | "amqp"> | undefined] | undefined;
24
+ readonly dryRun: _$_optique_core0.ValueParserResult<boolean> | undefined;
25
+ readonly allowNonEmpty: _$_optique_core0.ValueParserResult<boolean> | undefined;
26
26
  }>;
27
27
  /**
28
28
  * The `fedify init` CLI command parser.
29
29
  */
30
30
  declare const initCommand: _$_optique_core0.Parser<"sync", {
31
- readonly dir: string;
32
- readonly webFramework: "bare-bones" | "hono" | "nitro" | "next" | "elysia" | "astro" | "express" | "nuxt" | "solidstart";
33
- readonly packageManager: "deno" | "pnpm" | "bun" | "yarn" | "npm";
34
- readonly kvStore: "postgres" | "mysql" | "in-memory" | "redis" | "denokv";
35
- readonly messageQueue: "postgres" | "mysql" | "redis" | "denokv" | "in-process" | "amqp";
31
+ readonly dir: string | undefined;
32
+ readonly webFramework: "bare-bones" | "hono" | "nitro" | "next" | "elysia" | "astro" | "express" | "nuxt" | "solidstart" | undefined;
33
+ readonly packageManager: "deno" | "pnpm" | "bun" | "yarn" | "npm" | undefined;
34
+ readonly kvStore: "postgres" | "mysql" | "in-memory" | "redis" | "denokv" | undefined;
35
+ readonly messageQueue: "postgres" | "mysql" | "redis" | "denokv" | "in-process" | "amqp" | undefined;
36
36
  readonly dryRun: boolean;
37
37
  readonly allowNonEmpty: boolean;
38
38
  } & {
39
39
  readonly command: "init";
40
- }, ["matched", string] | ["parsing", Record<string | symbol, unknown>]>;
40
+ }, ["matched", string] | ["parsing", Record<string | symbol, unknown>] | undefined>;
41
41
  /** The inferred value type produced by parsing the `fedify init` command. */
42
42
  type InitCommand = InferValue<typeof initCommand>;
43
43
  //#endregion
package/dist/deno.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region deno.json
2
- var version = "2.3.0-dev.1069+81e910ce";
2
+ var version = "2.3.0-dev.1099+fafcfa78";
3
3
  //#endregion
4
4
  export { version };
package/dist/json/kv.js CHANGED
@@ -55,7 +55,7 @@ var kv_default = {
55
55
  "yarn",
56
56
  "pnpm"
57
57
  ],
58
- "dependencies": { "npm:mysql2": "^3.20.0" },
58
+ "dependencies": { "npm:mysql2": "^3.22.3" },
59
59
  "imports": {
60
60
  "@fedify/mysql": { "MysqlKvStore": "MysqlKvStore" },
61
61
  "mysql2/promise": { "default": "mysql" }
package/dist/json/kv.json CHANGED
@@ -75,7 +75,7 @@
75
75
  "pnpm"
76
76
  ],
77
77
  "dependencies": {
78
- "npm:mysql2": "^3.20.0"
78
+ "npm:mysql2": "^3.22.3"
79
79
  },
80
80
  "imports": {
81
81
  "@fedify/mysql": {
package/dist/json/mq.js CHANGED
@@ -55,7 +55,7 @@ var mq_default = {
55
55
  "yarn",
56
56
  "pnpm"
57
57
  ],
58
- "dependencies": { "npm:mysql2": "^3.20.0" },
58
+ "dependencies": { "npm:mysql2": "^3.22.3" },
59
59
  "imports": {
60
60
  "@fedify/mysql": { "MysqlMessageQueue": "MysqlMessageQueue" },
61
61
  "mysql2/promise": { "default": "mysql" }
package/dist/json/mq.json CHANGED
@@ -75,7 +75,7 @@
75
75
  "pnpm"
76
76
  ],
77
77
  "dependencies": {
78
- "npm:mysql2": "^3.20.0"
78
+ "npm:mysql2": "^3.22.3"
79
79
  },
80
80
  "imports": {
81
81
  "@fedify/mysql": {
package/dist/test/port.js CHANGED
@@ -113,7 +113,7 @@ async function replacePortInApp(dir, wf, defaultPort, newPort) {
113
113
  await writeFile(configPath, (await readFile(configPath, "utf8")).replace("defineConfig({", `defineConfig({\n server: { port: ${newPort} },`));
114
114
  return;
115
115
  }
116
- printErrorMessage`Unknown framework ${wf} cannot replace port.`;
116
+ printErrorMessage`Unknown framework ${wf}—cannot replace port.`;
117
117
  }
118
118
  /**
119
119
  * Ensure a port is fully released after killing a server process.
@@ -121,7 +121,7 @@ async function replacePortInApp(dir, wf, defaultPort, newPort) {
121
121
  */
122
122
  async function ensurePortReleased(port) {
123
123
  if (!await waitForPortRelease(port, 5e3)) {
124
- printMessage` Port ${String(port)} still in use force-killing...`;
124
+ printMessage` Port ${String(port)} still in use—force-killing...`;
125
125
  await killProcessOnPort(port);
126
126
  await waitForPortRelease(port, 3e3);
127
127
  }
package/dist/types.d.ts CHANGED
@@ -26,7 +26,7 @@ interface WebFrameworkInitializer {
26
26
  loggingTemplate?: string;
27
27
  /**
28
28
  * Additional files to create, keyed by relative path to file content.
29
- * Do not use `".env"` as a key use the {@link env} property instead so
29
+ * Do not use `".env"` as a key—use the {@link env} property instead so
30
30
  * that environment variables are properly merged with KV/MQ env vars.
31
31
  */
32
32
  files?: Record<string, string> & {
package/dist/utils.js CHANGED
@@ -58,6 +58,10 @@ const isNotFoundError = (e) => isObject(e) && "code" in e && e.code === "ENOENT"
58
58
  * Captures stdout, stderr, exit code, and the original command array.
59
59
  */
60
60
  var CommandError = class extends Error {
61
+ stdout;
62
+ stderr;
63
+ code;
64
+ command;
61
65
  commandLine;
62
66
  constructor(message, stdout, stderr, code, command) {
63
67
  super(message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/init",
3
- "version": "2.3.0-dev.1069+81e910ce",
3
+ "version": "2.3.0-dev.1099+fafcfa78",
4
4
  "description": "Project initializer for Fedify",
5
5
  "keywords": [
6
6
  "fedify",
@@ -48,20 +48,20 @@
48
48
  "README.md"
49
49
  ],
50
50
  "dependencies": {
51
- "@david/dax": "npm:dax@^0.45.0",
51
+ "@david/dax": "npm:dax@^0.46.1",
52
52
  "@fxts/core": "^1.20.0",
53
53
  "@inquirer/prompts": "^7.8.4",
54
- "@logtape/logtape": "^2.0.5",
54
+ "@logtape/logtape": "^2.0.7",
55
55
  "@optique/core": "^1.0.2",
56
56
  "@optique/run": "^1.0.2",
57
57
  "chalk": "^5.6.2",
58
- "es-toolkit": "1.43.0",
58
+ "es-toolkit": "1.46.1",
59
59
  "inquirer-toggle": "^1.0.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^22.17.0",
63
- "tsdown": "^0.21.6",
64
- "typescript": "^5.9.2"
63
+ "tsdown": "^0.22.0",
64
+ "typescript": "^6.0.0"
65
65
  },
66
66
  "scripts": {
67
67
  "build:self": "tsdown",