diff --git a/.changeset/new-pumas-begin.md b/.changeset/new-pumas-begin.md new file mode 100644 index 000000000000..f7f1d558a2b2 --- /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 46f588908542..bdb1bb48d7ed 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 000000000000..3b415153c0cc --- /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';