From b0a29a2274f6bc66cd24b58de7d3b7fff267361c Mon Sep 17 00:00:00 2001 From: Danny Maher Date: Mon, 20 Feb 2023 15:37:08 -0600 Subject: [PATCH] Specify CJS vs ESM exports for @nivo/colors package --- packages/colors/package.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/colors/package.json b/packages/colors/package.json index d5b9125b5..a0fff038a 100644 --- a/packages/colors/package.json +++ b/packages/colors/package.json @@ -14,6 +14,20 @@ "main": "./dist/nivo-colors.cjs.js", "module": "./dist/nivo-colors.es.js", "typings": "./dist/types/index.d.ts", + "exports": { + ".": { + "require": "./dist/nivo-colors.cjs.js", + "import": "./dist/nivo-colors.es.js" + }, + "./dist/nivo-colors.cjs.js": { + "require": "./dist/nivo-colors.cjs.js", + "default": "./dist/nivo-colors.cjs.js" + }, + "./dist/nivo-colors.es.js": { + "import": "./dist/nivo-colors.es.js", + "default": "./dist/nivo-colors.es.js" + } + }, "files": [ "README.md", "LICENSE.md",