From 1a24710a3f17c750b9a540adb00a4c9ed54802bd Mon Sep 17 00:00:00 2001 From: JuanM04 Date: Thu, 12 May 2022 18:35:30 -0300 Subject: [PATCH 1/2] Added missing types --- packages/integrations/vercel/package.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index a7ca9361b674..dcadf3586b35 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -3,7 +3,6 @@ "description": "Deploy your site to Vercel", "version": "0.2.0", "type": "module", - "types": "./dist/index.d.ts", "author": "withastro", "license": "MIT", "repository": { @@ -21,6 +20,19 @@ "./static": "./dist/serverless/adapter.js", "./package.json": "./package.json" }, + "typesVersions": { + "*": { + "edge": [ + "dist/edge/adapter.d.ts" + ], + "serverless": [ + "dist/serverless/adapter.d.ts" + ], + "static": [ + "dist/static/adapter.d.ts" + ] + } + }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", From 5e2b411d80be668c51ac977dc2b840f7274bc275 Mon Sep 17 00:00:00 2001 From: JuanM04 Date: Thu, 12 May 2022 18:39:09 -0300 Subject: [PATCH 2/2] Changeset --- .changeset/fast-dancers-watch.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fast-dancers-watch.md diff --git a/.changeset/fast-dancers-watch.md b/.changeset/fast-dancers-watch.md new file mode 100644 index 000000000000..64dcd8a88d10 --- /dev/null +++ b/.changeset/fast-dancers-watch.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vercel': patch +--- + +Added typescript definitions