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

fix(storybook): do not set cacheableOperations if not previously set #22535

Conversation

leosvelperez
Copy link
Member

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Mar 27, 2024
@leosvelperez leosvelperez requested a review from a team as a code owner March 27, 2024 10:40
@leosvelperez leosvelperez requested a review from jaysoo March 27, 2024 10:40
Copy link

vercel bot commented Mar 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 27, 2024 1:22pm

const nxJson = readNxJson(tree);

nxJson.targetDefaults ??= {};
nxJson.targetDefaults['build-storybook'] ??= {};
if (setCache) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cache option was introduced in Nx 17, but there's a migration for 16.5 using this utility. We don't set it in that case.

@leosvelperez leosvelperez force-pushed the storybook/wrong-cacheable-operations-setup branch from c17e27a to eb74058 Compare March 27, 2024 13:21
@leosvelperez leosvelperez enabled auto-merge (squash) March 27, 2024 13:22
@leosvelperez leosvelperez merged commit 590c7ae into nrwl:master Mar 27, 2024
6 checks passed
@leosvelperez leosvelperez deleted the storybook/wrong-cacheable-operations-setup branch March 27, 2024 13:56
Copy link

github-actions bot commented Apr 4, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants