From 945f5c68e892f6f17e59e41d0dfa2a7841f96bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Seery?= Date: Thu, 12 May 2022 18:59:07 -0300 Subject: [PATCH] fix(vercel): added type definitions (#3355) * Added missing types * Changeset --- .changeset/fast-dancers-watch.md | 5 +++++ packages/integrations/vercel/package.json | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) 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 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\"",