Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "package.json" to exports map #900

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

yannbf
Copy link
Contributor

@yannbf yannbf commented Jan 25, 2024

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!

Before:
image

After:
image

📦 Published PR as canary version: 10.5.1--canary.900.7652337120.0

✨ Test out this PR locally via:

npm install [email protected]
# or 
yarn add [email protected]

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!
@yannbf yannbf added bug Classification: Something isn't working patch Auto: Increment the patch version when merged release Auto: Create a `latest` release when merged labels Jan 25, 2024
@ghengeveld ghengeveld added this pull request to the merge queue Jan 25, 2024
Merged via the queue into main with commit f2b61d1 Jan 25, 2024
21 of 25 checks passed
@ghengeveld ghengeveld deleted the yann/add-package-json-entry branch January 25, 2024 15:29
@ghengeveld
Copy link
Member

🚀 PR was released in v10.5.1 🚀

@ghengeveld ghengeveld added the released Verdict: This issue/pull request has been released label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Classification: Something isn't working patch Auto: Increment the patch version when merged release Auto: Create a `latest` release when merged released Verdict: This issue/pull request has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants