mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
Export Cloudflare runtime types (#5230)
* Export Cloudflare runtime types * Adding a changeset
This commit is contained in:
parent
a609a8937f
commit
69a532ab60
3 changed files with 17 additions and 1 deletions
5
.changeset/new-pumas-begin.md
Normal file
5
.changeset/new-pumas-begin.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/cloudflare': patch
|
||||
---
|
||||
|
||||
Exports new runtime entrypoint's types
|
|
@ -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"
|
||||
|
|
8
packages/integrations/cloudflare/runtime.d.ts
vendored
Normal file
8
packages/integrations/cloudflare/runtime.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
export type {
|
||||
WorkerRuntime,
|
||||
PagesRuntime
|
||||
} from './dist/runtime';
|
||||
|
||||
export {
|
||||
getRuntime
|
||||
} from './dist/runtime';
|
Loading…
Reference in a new issue