@fedify/init 2.2.0-pr.708.19 → 2.2.0-pr.710.22

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/deno.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region deno.json
2
- var version = "2.2.0-pr.708.19+4267edbb";
2
+ var version = "2.2.0-pr.710.22+527afb16";
3
3
  //#endregion
4
4
  export { version };
package/dist/json/deps.js CHANGED
@@ -9,6 +9,7 @@ var npm__deno_astro_adapter = "^0.3.2";
9
9
  var npm__dotenvx_dotenvx = "^1.59.1";
10
10
  var npm__elysiajs_node = "^1.4.5";
11
11
  var npm__hono_node_server = "^1.19.12";
12
+ var npm__nurodev_astro_bun = "^2.1.2";
12
13
  var npm__sinclair_typebox = "^0.34.49";
13
14
  var npm__solidjs_router = "^0.16.1";
14
15
  var npm__solidjs_start = "^1.3.2";
@@ -28,4 +29,4 @@ var npm_typescript = "^5.9.3";
28
29
  var npm_vinxi = "^0.5.11";
29
30
  var npm_x_forwarded_fetch = "^0.2.0";
30
31
  //#endregion
31
- export { _hongminhee_x_forwarded_fetch, _hono_hono, _logtape_logtape, _std_dotenv, npm__astrojs_node, npm__biomejs_biome, npm__deno_astro_adapter, npm__dotenvx_dotenvx, npm__elysiajs_node, npm__hono_node_server, npm__sinclair_typebox, npm__solidjs_router, npm__solidjs_start, npm__types_bun, npm__types_express, npm__types_node_20, npm__types_node_22, npm__types_node_25, npm_elysia, npm_eslint, npm_express, npm_hono, npm_openapi_types, npm_solid_js, npm_tsx, npm_typescript, npm_vinxi, npm_x_forwarded_fetch };
32
+ export { _hongminhee_x_forwarded_fetch, _hono_hono, _logtape_logtape, _std_dotenv, npm__astrojs_node, npm__biomejs_biome, npm__deno_astro_adapter, npm__dotenvx_dotenvx, npm__elysiajs_node, npm__hono_node_server, npm__nurodev_astro_bun, npm__sinclair_typebox, npm__solidjs_router, npm__solidjs_start, npm__types_bun, npm__types_express, npm__types_node_20, npm__types_node_22, npm__types_node_25, npm_elysia, npm_eslint, npm_express, npm_hono, npm_openapi_types, npm_solid_js, npm_tsx, npm_typescript, npm_vinxi, npm_x_forwarded_fetch };
@@ -10,6 +10,7 @@
10
10
  "npm:@elysiajs/node": "^1.4.5",
11
11
  "npm:@hono/node-server": "^1.19.12",
12
12
  "npm:@nuxt/kit": "^4.4.2",
13
+ "npm:@nurodev/astro-bun": "^2.1.2",
13
14
  "npm:@sinclair/typebox": "^0.34.49",
14
15
  "npm:@solidjs/router": "^0.16.1",
15
16
  "npm:@solidjs/start": "^1.3.2",
@@ -0,0 +1,10 @@
1
+ import bun from "@nurodev/astro-bun";
2
+ import { fedifyIntegration } from "@fedify/astro";
3
+ import { defineConfig } from "astro/config";
4
+
5
+ // https://astro.build/config
6
+ export default defineConfig({
7
+ integrations: [fedifyIntegration()],
8
+ output: "server",
9
+ adapter: bun(),
10
+ });
@@ -1,6 +1,6 @@
1
1
  import { PACKAGE_VERSION, readTemplate } from "../lib.js";
2
2
  import { PACKAGE_MANAGER } from "../const.js";
3
- import { npm__astrojs_node, npm__deno_astro_adapter, npm__dotenvx_dotenvx, npm__types_node_22, npm_typescript } from "../json/deps.js";
3
+ import { npm__astrojs_node, npm__deno_astro_adapter, npm__dotenvx_dotenvx, npm__nurodev_astro_bun, npm__types_node_22, npm_typescript } from "../json/deps.js";
4
4
  import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
5
5
  import { getInstruction, pmToRt } from "./utils.js";
6
6
  //#region src/webframeworks/astro.ts
@@ -8,34 +8,40 @@ const astroDescription = {
8
8
  label: "Astro",
9
9
  packageManagers: PACKAGE_MANAGER,
10
10
  defaultPort: 4321,
11
- init: async ({ packageManager: pm }) => ({
12
- command: Array.from(getAstroInitCommand(pm)),
13
- dependencies: pm === "deno" ? {
11
+ init: async ({ packageManager: pm }) => {
12
+ const dependencies = pm === "deno" ? {
14
13
  ...defaultDenoDependencies,
15
14
  "@deno/astro-adapter": `npm:@deno/astro-adapter@${npm__deno_astro_adapter}`,
16
15
  "@fedify/astro": PACKAGE_VERSION
16
+ } : pm === "bun" ? {
17
+ "@fedify/astro": PACKAGE_VERSION,
18
+ "@nurodev/astro-bun": npm__nurodev_astro_bun
17
19
  } : {
18
20
  "@astrojs/node": npm__astrojs_node,
19
21
  "@fedify/astro": PACKAGE_VERSION,
20
- ...pm !== "bun" && { "@dotenvx/dotenvx": npm__dotenvx_dotenvx }
21
- },
22
- devDependencies: {
23
- ...defaultDevDependencies,
24
- ...pm !== "deno" ? {
25
- typescript: npm_typescript,
26
- "@types/node": npm__types_node_22
27
- } : {}
28
- },
29
- federationFile: "src/federation.ts",
30
- loggingFile: "src/logging.ts",
31
- files: {
32
- "astro.config.ts": await readTemplate(`astro/astro.config.${pm === "deno" ? "deno" : "node"}.ts`),
33
- "src/middleware.ts": await readTemplate("astro/src/middleware.ts"),
34
- ...pm !== "deno" && { "eslint.config.ts": await readTemplate("defaults/eslint.config.ts") }
35
- },
36
- tasks: TASKS[pmToRt(pm)],
37
- instruction: getInstruction(pm, 4321)
38
- })
22
+ "@dotenvx/dotenvx": npm__dotenvx_dotenvx
23
+ };
24
+ return {
25
+ command: Array.from(getAstroInitCommand(pm)),
26
+ dependencies,
27
+ devDependencies: {
28
+ ...defaultDevDependencies,
29
+ ...pm !== "deno" ? {
30
+ typescript: npm_typescript,
31
+ "@types/node": npm__types_node_22
32
+ } : {}
33
+ },
34
+ federationFile: "src/federation.ts",
35
+ loggingFile: "src/logging.ts",
36
+ files: {
37
+ "astro.config.ts": await readTemplate(`astro/astro.config.${pmToRt(pm)}.ts`),
38
+ "src/middleware.ts": await readTemplate("astro/src/middleware.ts"),
39
+ ...pm !== "deno" && { "eslint.config.ts": await readTemplate("defaults/eslint.config.ts") }
40
+ },
41
+ tasks: TASKS[pmToRt(pm)],
42
+ instruction: getInstruction(pm, 4321)
43
+ };
44
+ }
39
45
  };
40
46
  /**
41
47
  * Returns the shell command array to scaffold a new Astro project
@@ -72,7 +78,7 @@ const TASKS = {
72
78
  "bun": {
73
79
  dev: "bunx astro dev",
74
80
  build: "bunx astro build",
75
- preview: "bunx astro preview",
81
+ preview: "bun ./dist/server/entry.mjs",
76
82
  lint: "eslint ."
77
83
  },
78
84
  "node": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/init",
3
- "version": "2.2.0-pr.708.19+4267edbb",
3
+ "version": "2.2.0-pr.710.22+527afb16",
4
4
  "description": "Project initializer for Fedify",
5
5
  "keywords": [
6
6
  "fedify",