diff --git a/.changeset/fast-dancers-watch.md b/.changeset/fast-dancers-watch.md new file mode 100644 index 000000000..64dcd8a88 --- /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 a7ca9361b..dcadf3586 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\"",