From 9818200adacc4bb92296441f0de38e8b1929c294 Mon Sep 17 00:00:00 2001 From: Braden Wiggins Date: Mon, 2 Sep 2024 23:47:22 -0400 Subject: [PATCH] export types adding `types` fields to `package.json` fixes #648 --- packages/mdsvex/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/mdsvex/package.json b/packages/mdsvex/package.json index c73ed36e..3e925df3 100644 --- a/packages/mdsvex/package.json +++ b/packages/mdsvex/package.json @@ -6,12 +6,14 @@ "exports": { ".": { "require": "./dist/main.cjs", - "default": "./dist/main.mjs" + "default": "./dist/main.mjs", + "types": "./dist/main.es.d.ts" }, "./package.json": "./package.json" }, "main": "dist/main.cjs", "module": "dist/main.mjs", + "types": "./dist/main.es.d.ts", "repository": "https://github.com/pngwn/MDsveX", "scripts": { "build": "rollup -c",