From b4ad0ac98edd49b0b82dbf5180b326c1d6602e33 Mon Sep 17 00:00:00 2001 From: Ghislain B Date: Sat, 11 Nov 2023 01:28:35 -0500 Subject: [PATCH] fix: adjust types & exports for all bundler (#161) - hopefully get better result when checking exports in https://arethetypeswrong.github.io/?p=multiple-select-vanilla --- lib/package.json | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/lib/package.json b/lib/package.json index cee472672..6d44cd045 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,25 +1,29 @@ { "name": "multiple-select-vanilla", "version": "0.6.1", - "exports": { - ".": { - "import": "./dist/esm/multiple-select.js", - "require": "./dist/cjs/multiple-select.js", - "default": "./dist/esm/multiple-select.js", - "types": "./dist/types/index.d.ts" - }, - "./*": "./*" - }, + "main": "./dist/cjs/multiple-select.js", + "module": "./dist/esm/multiple-select.js", + "types": "index.d.ts", "typesVersions": { - "*": { + ">=4.2": { "*": [ - "./dist/types/index.d.ts" + "dist/types/*" ] } }, - "types": "./dist/types/index.d.ts", - "main": "./dist/cjs/multiple-select.js", - "module": "./dist/esm/multiple-select.js", + "exports": { + ".": { + "types": "./dist/types/index.d.ts", + "node": "./dist/cjs/multiple-select.js", + "require": "./dist/cjs/multiple-select.js", + "default": "./dist/esm/multiple-select.js" + }, + "./dist/multiple-select-all-locales": "./dist/multiple-select-all-locales", + "./dist/multiple-select": "./dist/multiple-select", + "./dist/locales/*": "./dist/locales/*", + "./dist/styles/*": "./dist/styles/*", + "./package.json": "./package.json" + }, "files": [ "dist" ],