Skip to content

Commit

Permalink
Include ambient.d.ts files in adapter packages. (#6917)
Browse files Browse the repository at this point in the history
* Include ambient.d.ts files in adapter packages.

Fixes automatic typing for Cloudflare caches and similar stuff.

* Update packages/adapter-netlify/package.json

* Update packages/adapter-node/package.json

* Update packages/adapter-vercel/package.json

* Update .changeset/dull-cows-sneeze.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>
  • Loading branch information
SG60 and Rich-Harris authored Sep 21, 2022
1 parent acd6eb7 commit e40acb5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/dull-cows-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@sveltejs/adapter-cloudflare': patch
'@sveltejs/adapter-cloudflare-workers': patch
---

Include ambient.d.ts files in adapter packages.
1 change: 1 addition & 0 deletions packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"main": "index.js",
"types": "index.d.ts",
"files": [
"ambient.d.ts",
"files",
"index.d.ts"
],
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"files": [
"files",
"index.js",
"index.d.ts"
"index.d.ts",
"ambient.d.ts"
],
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e40acb5

Please sign in to comment.