From 9e3c0b2a5121d499d54bf27f75738e4a1ee9bc48 Mon Sep 17 00:00:00 2001 From: Ruggero Turra Date: Wed, 29 May 2024 10:24:53 +0200 Subject: [PATCH 1/2] export types.d.ts --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aef2e6983..bab92ba07 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,11 @@ "module": "./modules/main.mjs", "types": "./types.d.ts", "exports": { - ".": "./modules/main.mjs", + ".": { + "import": "./modules/main.mjs", + "require": "./build/jsroot.js", + "types": "./types.d.ts" + }, "./core": "./modules/core.mjs", "./draw": "./modules/draw.mjs", "./io": "./modules/io.mjs", @@ -133,4 +137,4 @@ "core-js": false, "dompurify": false } -} +} \ No newline at end of file From c71b509218b766a12185d7e2a28f75b5c598d646 Mon Sep 17 00:00:00 2001 From: Ruggero Turra Date: Wed, 29 May 2024 10:48:03 +0200 Subject: [PATCH 2/2] reset newline --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bab92ba07..ef8fbda54 100644 --- a/package.json +++ b/package.json @@ -137,4 +137,4 @@ "core-js": false, "dompurify": false } -} \ No newline at end of file +}