@fedify/init 2.2.0-dev.869 → 2.2.0-pr.695.23
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
package/dist/json/deps.js
CHANGED
|
@@ -9,7 +9,6 @@ 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";
|
|
13
12
|
var npm__sinclair_typebox = "^0.34.49";
|
|
14
13
|
var npm__solidjs_router = "^0.16.1";
|
|
15
14
|
var npm__solidjs_start = "^1.3.2";
|
|
@@ -29,4 +28,4 @@ var npm_typescript = "^5.9.3";
|
|
|
29
28
|
var npm_vinxi = "^0.5.11";
|
|
30
29
|
var npm_x_forwarded_fetch = "^0.2.0";
|
|
31
30
|
//#endregion
|
|
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,
|
|
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 };
|
package/dist/json/deps.json
CHANGED
|
@@ -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,
|
|
3
|
+
import { npm__astrojs_node, npm__deno_astro_adapter, npm__dotenvx_dotenvx, 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,40 +8,34 @@ const astroDescription = {
|
|
|
8
8
|
label: "Astro",
|
|
9
9
|
packageManagers: PACKAGE_MANAGER,
|
|
10
10
|
defaultPort: 4321,
|
|
11
|
-
init: async ({ packageManager: pm }) => {
|
|
12
|
-
|
|
11
|
+
init: async ({ packageManager: pm }) => ({
|
|
12
|
+
command: Array.from(getAstroInitCommand(pm)),
|
|
13
|
+
dependencies: pm === "deno" ? {
|
|
13
14
|
...defaultDenoDependencies,
|
|
14
15
|
"@deno/astro-adapter": `npm:@deno/astro-adapter@${npm__deno_astro_adapter}`,
|
|
15
16
|
"@fedify/astro": PACKAGE_VERSION
|
|
16
|
-
} : pm === "bun" ? {
|
|
17
|
-
"@fedify/astro": PACKAGE_VERSION,
|
|
18
|
-
"@nurodev/astro-bun": npm__nurodev_astro_bun
|
|
19
17
|
} : {
|
|
20
18
|
"@astrojs/node": npm__astrojs_node,
|
|
21
19
|
"@fedify/astro": PACKAGE_VERSION,
|
|
22
|
-
"@dotenvx/dotenvx": npm__dotenvx_dotenvx
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
tasks: TASKS[pmToRt(pm)],
|
|
42
|
-
instruction: getInstruction(pm, 4321)
|
|
43
|
-
};
|
|
44
|
-
}
|
|
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
|
+
})
|
|
45
39
|
};
|
|
46
40
|
/**
|
|
47
41
|
* Returns the shell command array to scaffold a new Astro project
|
|
@@ -76,9 +70,9 @@ const TASKS = {
|
|
|
76
70
|
preview: "deno run -A npm:astro preview"
|
|
77
71
|
},
|
|
78
72
|
"bun": {
|
|
79
|
-
dev: "bunx
|
|
80
|
-
build: "bunx
|
|
81
|
-
preview: "
|
|
73
|
+
dev: "bunx astro dev",
|
|
74
|
+
build: "bunx astro build",
|
|
75
|
+
preview: "bunx astro preview",
|
|
82
76
|
lint: "eslint ."
|
|
83
77
|
},
|
|
84
78
|
"node": {
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
});
|