From 3ded8a2349d4f7880aa3b2f347685ce1d722b7ae Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Tue, 28 Feb 2023 22:25:56 +0400 Subject: [PATCH] fix: fix plugins export from package.json fix #326 --- package.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 80ed12c0..4a4e8f60 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,19 @@ "require": "./dist/cal-heatmap.js" }, "./package.json": "./package.json", - "./cal-heatmap.css": "./dist/cal-heatmap.css" + "./cal-heatmap.css": "./dist/cal-heatmap.css", + "./plugins/Tooltip": { + "import": "./dist/plugins/Tooltip.esm.js", + "require": "./dist/plugins/Tooltip.js" + }, + "./plugins/Legend": { + "import": "./dist/plugins/Legend.esm.js", + "require": "./dist/plugins/Legend.js" + }, + "./plugins/LegendLite": { + "import": "./dist/plugins/LegendLite.esm.js", + "require": "./dist/plugins/LegendLite.js" + } }, "directories": { "test": "test"