summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/new-pumas-begin.md5
-rw-r--r--packages/integrations/cloudflare/package.json5
-rw-r--r--packages/integrations/cloudflare/runtime.d.ts8
3 files changed, 17 insertions, 1 deletions
diff --git a/.changeset/new-pumas-begin.md b/.changeset/new-pumas-begin.md
new file mode 100644
index 000000000..f7f1d558a
--- /dev/null
+++ b/.changeset/new-pumas-begin.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/cloudflare': patch
+---
+
+Exports new runtime entrypoint's types
diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json
index 46f588908..bdb1bb48d 100644
--- a/packages/integrations/cloudflare/package.json
+++ b/packages/integrations/cloudflare/package.json
@@ -19,7 +19,10 @@
"homepage": "https://docs.astro.build/en/guides/integrations-guide/cloudflare/",
"exports": {
".": "./dist/index.js",
- "./runtime": "./dist/runtime.js",
+ "./runtime": {
+ "types": "./runtime.d.ts",
+ "default": "./dist/runtime.js"
+ },
"./server.advanced.js": "./dist/server.advanced.js",
"./server.directory.js": "./dist/server.directory.js",
"./package.json": "./package.json"
diff --git a/packages/integrations/cloudflare/runtime.d.ts b/packages/integrations/cloudflare/runtime.d.ts
new file mode 100644
index 000000000..3b415153c
--- /dev/null
+++ b/packages/integrations/cloudflare/runtime.d.ts
@@ -0,0 +1,8 @@
+export type {
+ WorkerRuntime,
+ PagesRuntime
+} from './dist/runtime';
+
+export {
+ getRuntime
+} from './dist/runtime';