Skip to content

Commit

Permalink
Add "package.json" to exports map
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
yannbf authored Jan 25, 2024
1 parent 51feafd commit f7212e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"types": "./isChromatic.d.ts",
"require": "./isChromatic.js",
"import": "./isChromatic.mjs"
}
},
"./package.json": "./package.json"
},
"main": "isChromatic.js",
"module": "isChromatic.mjs",
Expand Down

0 comments on commit f7212e5

Please sign in to comment.