@fedify/astro 2.2.0-pr.697.18 → 2.2.0-pr.709.20
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/README.md +33 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -52,13 +52,12 @@ export const onRequest = fedifyMiddleware(
|
|
|
52
52
|
For Deno users
|
|
53
53
|
--------------
|
|
54
54
|
|
|
55
|
-
If you are using Deno, you should import `@deno/
|
|
55
|
+
If you are using Deno, you should import `@deno/astro-adapter` in
|
|
56
56
|
*astro.config.mjs* and use it as the adapter:
|
|
57
57
|
|
|
58
58
|
~~~~ typescript
|
|
59
59
|
import { defineConfig } from "astro/config";
|
|
60
60
|
import { fedifyIntegration } from "@fedify/astro";
|
|
61
|
-
import deno from "@deno/vite-adapter";
|
|
62
61
|
import deno from "@deno/astro-adapter";
|
|
63
62
|
|
|
64
63
|
export default defineConfig({
|
|
@@ -82,6 +81,38 @@ instead of `astro`:
|
|
|
82
81
|
~~~~
|
|
83
82
|
|
|
84
83
|
|
|
84
|
+
For Bun users
|
|
85
|
+
-------------
|
|
86
|
+
|
|
87
|
+
If you are using Bun, install `@nurodev/astro-bun` and configure it as the
|
|
88
|
+
Astro adapter:
|
|
89
|
+
|
|
90
|
+
~~~~ typescript
|
|
91
|
+
import { defineConfig } from "astro/config";
|
|
92
|
+
import { fedifyIntegration } from "@fedify/astro";
|
|
93
|
+
import bun from "@nurodev/astro-bun";
|
|
94
|
+
|
|
95
|
+
export default defineConfig({
|
|
96
|
+
integrations: [fedifyIntegration()],
|
|
97
|
+
output: "server",
|
|
98
|
+
adapter: bun(),
|
|
99
|
+
});
|
|
100
|
+
~~~~
|
|
101
|
+
|
|
102
|
+
Then use Bun to start Astro in development, and run the generated server entry
|
|
103
|
+
point after building for preview or production:
|
|
104
|
+
|
|
105
|
+
~~~~ json
|
|
106
|
+
{
|
|
107
|
+
"scripts": {
|
|
108
|
+
"dev": "bunx astro dev",
|
|
109
|
+
"build": "bunx astro build",
|
|
110
|
+
"preview": "bun ./dist/server/entry.mjs"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
~~~~
|
|
114
|
+
|
|
115
|
+
|
|
85
116
|
How it works
|
|
86
117
|
------------
|
|
87
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/astro",
|
|
3
|
-
"version": "2.2.0-pr.
|
|
3
|
+
"version": "2.2.0-pr.709.20+17eb3fa5",
|
|
4
4
|
"description": "Integrate Fedify with Astro",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"astro": "^5.0.0",
|
|
53
|
-
"@fedify/fedify": "^2.2.0-pr.
|
|
53
|
+
"@fedify/fedify": "^2.2.0-pr.709.20+17eb3fa5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"tsdown": "^0.21.6",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"build:self": "tsdown",
|
|
61
61
|
"build": "pnpm --filter @fedify/astro... run build:self",
|
|
62
62
|
"prepublish": "pnpm build",
|
|
63
|
+
"pretest": "pnpm build",
|
|
63
64
|
"test": "node --experimental-transform-types --test"
|
|
64
65
|
}
|
|
65
66
|
}
|