@fedify/init 2.1.1 → 2.1.3

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.
Files changed (58) hide show
  1. package/dist/action/configs.js +1 -3
  2. package/dist/action/const.js +1 -3
  3. package/dist/action/deps.js +2 -6
  4. package/dist/action/dir.js +1 -3
  5. package/dist/action/env.js +1 -4
  6. package/dist/action/install.js +1 -4
  7. package/dist/action/mod.d.ts +0 -1
  8. package/dist/action/mod.js +10 -13
  9. package/dist/action/notice.js +3 -5
  10. package/dist/action/patch.js +2 -5
  11. package/dist/action/precommand.js +1 -4
  12. package/dist/action/recommend.js +1 -4
  13. package/dist/action/set.js +3 -6
  14. package/dist/action/templates.js +2 -4
  15. package/dist/action/utils.js +1 -3
  16. package/dist/ask/dir.js +1 -4
  17. package/dist/ask/kv.js +1 -4
  18. package/dist/ask/mod.js +7 -10
  19. package/dist/ask/mq.js +1 -4
  20. package/dist/ask/pm.js +6 -9
  21. package/dist/ask/wf.js +3 -6
  22. package/dist/command.d.ts +9 -13
  23. package/dist/command.js +1 -3
  24. package/dist/const.d.ts +0 -2
  25. package/dist/const.js +1 -3
  26. package/dist/deno.js +2 -36
  27. package/dist/json/biome.js +9 -14
  28. package/dist/json/db-to-check.js +21 -26
  29. package/dist/json/kv.js +69 -75
  30. package/dist/json/mq.js +86 -93
  31. package/dist/json/pm.js +31 -37
  32. package/dist/json/rt.js +26 -32
  33. package/dist/json/vscode-settings-for-deno.js +34 -46
  34. package/dist/json/vscode-settings.js +32 -42
  35. package/dist/lib.js +4 -7
  36. package/dist/mod.js +2 -3
  37. package/dist/test/action.js +3 -6
  38. package/dist/test/create.js +11 -18
  39. package/dist/test/db.js +2 -5
  40. package/dist/test/fill.js +9 -11
  41. package/dist/test/lookup.js +8 -14
  42. package/dist/test/mod.js +5 -7
  43. package/dist/test/run.js +4 -7
  44. package/dist/test/utils.js +1 -3
  45. package/dist/types.d.ts +0 -8
  46. package/dist/utils.d.ts +0 -3
  47. package/dist/utils.js +15 -23
  48. package/dist/webframeworks/astro.js +1 -4
  49. package/dist/webframeworks/bare-bones.js +1 -4
  50. package/dist/webframeworks/const.js +1 -3
  51. package/dist/webframeworks/elysia.js +1 -4
  52. package/dist/webframeworks/express.js +1 -4
  53. package/dist/webframeworks/hono.js +1 -4
  54. package/dist/webframeworks/mod.js +15 -18
  55. package/dist/webframeworks/next.js +1 -4
  56. package/dist/webframeworks/nitro.js +1 -4
  57. package/dist/webframeworks/utils.js +1 -3
  58. package/package.json +5 -3
@@ -2,7 +2,6 @@ import { PACKAGE_VERSION, readTemplate } from "../lib.js";
2
2
  import { PACKAGE_MANAGER } from "../const.js";
3
3
  import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
4
4
  import { getInstruction } from "./utils.js";
5
-
6
5
  //#region src/webframeworks/express.ts
7
6
  const expressDescription = {
8
7
  label: "Express",
@@ -48,7 +47,5 @@ const expressDescription = {
48
47
  instruction: getInstruction(pm, 8e3)
49
48
  })
50
49
  };
51
- var express_default = expressDescription;
52
-
53
50
  //#endregion
54
- export { express_default as default };
51
+ export { expressDescription as default };
@@ -4,7 +4,6 @@ import { PACKAGE_MANAGER } from "../const.js";
4
4
  import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
5
5
  import { getInstruction, packageManagerToRuntime } from "./utils.js";
6
6
  import { pipe } from "@fxts/core";
7
-
8
7
  //#region src/webframeworks/hono.ts
9
8
  const honoDescription = {
10
9
  label: "Hono",
@@ -60,7 +59,5 @@ const honoDescription = {
60
59
  instruction: getInstruction(pm, 8e3)
61
60
  })
62
61
  };
63
- var hono_default = honoDescription;
64
-
65
62
  //#endregion
66
- export { hono_default as default };
63
+ export { honoDescription as default };
@@ -1,11 +1,10 @@
1
- import astro_default from "./astro.js";
2
- import bare_bones_default from "./bare-bones.js";
3
- import elysia_default from "./elysia.js";
4
- import express_default from "./express.js";
5
- import hono_default from "./hono.js";
6
- import next_default from "./next.js";
7
- import nitro_default from "./nitro.js";
8
-
1
+ import astroDescription from "./astro.js";
2
+ import bareBonesDescription from "./bare-bones.js";
3
+ import elysiaDescription from "./elysia.js";
4
+ import expressDescription from "./express.js";
5
+ import honoDescription from "./hono.js";
6
+ import nextDescription from "./next.js";
7
+ import nitroDescription from "./nitro.js";
9
8
  //#region src/webframeworks/mod.ts
10
9
  /**
11
10
  * Registry of all supported web framework configurations.
@@ -15,15 +14,13 @@ import nitro_default from "./nitro.js";
15
14
  * and instructions tailored to the selected package manager.
16
15
  */
17
16
  const webFrameworks = {
18
- "bare-bones": bare_bones_default,
19
- astro: astro_default,
20
- elysia: elysia_default,
21
- express: express_default,
22
- hono: hono_default,
23
- next: next_default,
24
- nitro: nitro_default
17
+ "bare-bones": bareBonesDescription,
18
+ astro: astroDescription,
19
+ elysia: elysiaDescription,
20
+ express: expressDescription,
21
+ hono: honoDescription,
22
+ next: nextDescription,
23
+ nitro: nitroDescription
25
24
  };
26
- var webframeworks_default = webFrameworks;
27
-
28
25
  //#endregion
29
- export { webframeworks_default as default };
26
+ export { webFrameworks as default };
@@ -2,7 +2,6 @@ import { PACKAGE_VERSION, readTemplate } from "../lib.js";
2
2
  import { PACKAGE_MANAGER } from "../const.js";
3
3
  import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
4
4
  import { getInstruction } from "./utils.js";
5
-
6
5
  //#region src/webframeworks/next.ts
7
6
  const nextDescription = {
8
7
  label: "Next.js",
@@ -28,7 +27,6 @@ const nextDescription = {
28
27
  instruction: getInstruction(pm, 3e3)
29
28
  })
30
29
  };
31
- var next_default = nextDescription;
32
30
  /**
33
31
  * Returns the shell command array to scaffold a new Next.js project
34
32
  * in the current directory using the given package manager.
@@ -51,6 +49,5 @@ const createNextAppCommand = (pm) => pm === "deno" ? [
51
49
  "dlx",
52
50
  "create-next-app"
53
51
  ];
54
-
55
52
  //#endregion
56
- export { next_default as default };
53
+ export { nextDescription as default };
@@ -2,7 +2,6 @@ import { PACKAGE_VERSION, readTemplate } from "../lib.js";
2
2
  import { PACKAGE_MANAGER } from "../const.js";
3
3
  import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
4
4
  import { getInstruction } from "./utils.js";
5
-
6
5
  //#region src/webframeworks/nitro.ts
7
6
  const nitroDescription = {
8
7
  label: "Nitro",
@@ -28,7 +27,6 @@ const nitroDescription = {
28
27
  instruction: getInstruction(pm, 3e3)
29
28
  })
30
29
  };
31
- var nitro_default = nitroDescription;
32
30
  /**
33
31
  * Returns the shell command array to scaffold a new Nitro project
34
32
  * in the current directory using the given package manager.
@@ -48,6 +46,5 @@ const createNitroAppCommand = (pm) => pm === "deno" ? [
48
46
  "run",
49
47
  "-A"
50
48
  ] : pm === "bun" ? ["bunx"] : pm === "npm" ? ["npx"] : [pm, "dlx"];
51
-
52
49
  //#endregion
53
- export { nitro_default as default };
50
+ export { nitroDescription as default };
@@ -1,6 +1,5 @@
1
1
  import { getDevCommand } from "../lib.js";
2
2
  import { commandLine, message } from "@optique/core/message";
3
-
4
3
  //#region src/webframeworks/utils.ts
5
4
  /**
6
5
  * Generates the post-initialization instruction message that shows
@@ -26,6 +25,5 @@ Then, try to look up an actor from your server:
26
25
  * @returns The runtime name (deno, bun, or node)
27
26
  */
28
27
  const packageManagerToRuntime = (pm) => pm === "deno" ? "deno" : pm === "bun" ? "bun" : "node";
29
-
30
28
  //#endregion
31
- export { getInstruction, packageManagerToRuntime };
29
+ export { getInstruction, packageManagerToRuntime };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/init",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Project initializer for Fedify",
5
5
  "keywords": [
6
6
  "fedify",
@@ -59,13 +59,15 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^22.17.0",
62
- "tsdown": "^0.12.9",
63
- "typescript": "^5.9.3"
62
+ "tsdown": "^0.21.6",
63
+ "typescript": "^5.9.2"
64
64
  },
65
65
  "scripts": {
66
66
  "build:self": "tsdown",
67
67
  "build": "pnpm --filter @fedify/init... run build:self",
68
68
  "prepublish": "pnpm build",
69
+ "pretest": "pnpm build",
70
+ "test": "node --test --experimental-transform-types 'src/**/*.test.ts'",
69
71
  "test-init": "deno task test-init"
70
72
  }
71
73
  }