From c03e16c648752b201fef1d3b2522c58cea19341f Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 12 Feb 2024 11:43:32 +0100 Subject: [PATCH] Add declaration maps --- .gitignore | 2 ++ packages/esbuild/package.json | 1 + packages/loader/package.json | 4 ++-- packages/mdx/package.json | 1 + packages/node-loader/package.json | 1 + packages/preact/package.json | 1 + packages/react/package.json | 1 + packages/remark-mdx/package.json | 1 + packages/rollup/package.json | 1 + packages/vue/package.json | 1 + tsconfig.json | 1 + 11 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a0df8a808..20c333c5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ .DS_Store coverage/ node_modules/ +*.d.cts.map *.d.cts +*.d.ts.map *.d.ts /public/ !/packages/mdx/lib/types.d.ts diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json index 75dada0ec..143ef5a4e 100644 --- a/packages/esbuild/package.json +++ b/packages/esbuild/package.json @@ -33,6 +33,7 @@ "exports": "./index.js", "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/packages/loader/package.json b/packages/loader/package.json index 3bc8ebc83..46992ecf8 100644 --- a/packages/loader/package.json +++ b/packages/loader/package.json @@ -39,8 +39,8 @@ "files": [ "lib/", "index.cjs", - "index.d.cts", - "index.d.ts" + "index.d.cts.map", + "index.d.cts" ], "dependencies": { "@mdx-js/mdx": "^3.0.0", diff --git a/packages/mdx/package.json b/packages/mdx/package.json index 70a9034ea..44548a250 100644 --- a/packages/mdx/package.json +++ b/packages/mdx/package.json @@ -38,6 +38,7 @@ }, "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/packages/node-loader/package.json b/packages/node-loader/package.json index 59b7330e5..f655d9d85 100644 --- a/packages/node-loader/package.json +++ b/packages/node-loader/package.json @@ -38,6 +38,7 @@ }, "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/packages/preact/package.json b/packages/preact/package.json index 23842d464..7cfebb0ed 100644 --- a/packages/preact/package.json +++ b/packages/preact/package.json @@ -36,6 +36,7 @@ "exports": "./index.js", "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/packages/react/package.json b/packages/react/package.json index 9933da252..7d23948d8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -35,6 +35,7 @@ "exports": "./index.js", "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/packages/remark-mdx/package.json b/packages/remark-mdx/package.json index 03eeda371..bf786437e 100644 --- a/packages/remark-mdx/package.json +++ b/packages/remark-mdx/package.json @@ -36,6 +36,7 @@ "exports": "./index.js", "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 174ad1685..64bc4602d 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -33,6 +33,7 @@ "exports": "./index.js", "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/packages/vue/package.json b/packages/vue/package.json index 738a0cf95..ddfe69587 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -31,6 +31,7 @@ "exports": "./index.js", "files": [ "lib/", + "index.d.ts.map", "index.d.ts", "index.js" ], diff --git a/tsconfig.json b/tsconfig.json index 420f6ff11..80f3b33be 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "checkJs": true, "customConditions": ["development"], "declaration": true, + "declarationMap": true, "emitDeclarationOnly": true, "exactOptionalPropertyTypes": true, "jsx": "preserve",