From a6c21d5873c55e7ad1484cc7ecf06408614f68b9 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Mon, 18 Sep 2023 18:17:05 +0200 Subject: [PATCH] Ensure types are declared first in `exports` field (#996) --- .changeset/four-humans-repair.md | 5 +++++ package.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/four-humans-repair.md diff --git a/.changeset/four-humans-repair.md b/.changeset/four-humans-repair.md new file mode 100644 index 00000000..34f2f7b2 --- /dev/null +++ b/.changeset/four-humans-repair.md @@ -0,0 +1,5 @@ +--- +"dom-accessibility-api": patch +--- + +Ensure types are declared first in `exports` field diff --git a/package.json b/package.json index 187b3a98..6b1d6094 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "module": "dist/index.mjs", "type": "commonjs", "exports": { + "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": "./dist/index.js" }, "license": "MIT", "repository": {