From 21d3e6a29220cc5ef8345ecba4260c561e5ea6e7 Mon Sep 17 00:00:00 2001 From: Martin PAUCOT Date: Thu, 23 Jan 2025 14:40:49 +0100 Subject: [PATCH] fix: use index.d.ts as types for cjs --- .changeset/witty-bottles-carry.md | 5 +++++ packages/openapi-react-query/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/witty-bottles-carry.md diff --git a/.changeset/witty-bottles-carry.md b/.changeset/witty-bottles-carry.md new file mode 100644 index 000000000..256eec4c1 --- /dev/null +++ b/.changeset/witty-bottles-carry.md @@ -0,0 +1,5 @@ +--- +"openapi-react-query": patch +--- + +[#2098](https://github.com/openapi-ts/openapi-typescript/pull/2098): Fix CJS type issues by pointing to proper d.ts file diff --git a/packages/openapi-react-query/package.json b/packages/openapi-react-query/package.json index 52edbbdd6..a2454e602 100644 --- a/packages/openapi-react-query/package.json +++ b/packages/openapi-react-query/package.json @@ -18,7 +18,7 @@ "default": "./dist/index.js" }, "require": { - "types": "./dist/index.d.cts", + "types": "./dist/index.d.ts", "default": "./dist/index.cjs" } },