From 335f5d7e0d86777d6cde7ef3cd9a2024c028a051 Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Tue, 19 Mar 2024 19:19:09 -0400 Subject: [PATCH] Define "types" field first See https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing and https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d37a1061..121669ff 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "type": "module", "source": "./src/js/index.js", "exports": { - "default": "./dist/index.js", - "types": "./src/js/index.d.ts" + "types": "./src/js/index.d.ts", + "default": "./dist/index.js" }, "module": "./dist/index.esm.js", "types": "./src/js/index.d.ts",