From f7212e541323494e1d9cef27f07c3ac3bc0527a6 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 25 Jan 2024 09:58:04 +0100 Subject: [PATCH] Add "package.json" to exports map Storybook telemetry uses the package.json to determine the installed version of packages. Because the Chromatic CLI now has an exports map, but it does not contain package.json as an entry point, Storybook fails to read it, and therefore the version in the metadata is `null`. This PR fixes that! --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4e5cc40af..d9bcb4797 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,8 @@ "types": "./isChromatic.d.ts", "require": "./isChromatic.js", "import": "./isChromatic.mjs" - } + }, + "./package.json": "./package.json" }, "main": "isChromatic.js", "module": "isChromatic.mjs",