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

Angular: Fix webpackStatsJson types in angular-builder #20296

Conversation

duncan-c
Copy link
Contributor

Issue:

What I did

Added "string" as a permissible type for the webpackStatsJson option of the angular-builder to match the actual allowed type of the option in the CLI (webpackStatsJson?: string | boolean;).

Without this, the Chromatic builder is failing when the --only-changed flag is set, because it passes a string as a value to webpackStatsJson. The error given is:

Property 'webpackStatsJson' does not match the schema. '/tmp/chromatic--36948-Ir8V9lertIJR' should be a 'boolean'.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@shilman shilman changed the title fix: Correct allowed types of webpackStatsJson in angular-builder Angular: Fix allowed types of webpackStatsJson in angular-builder Dec 16, 2022
@shilman shilman changed the title Angular: Fix allowed types of webpackStatsJson in angular-builder Angular: Fix webpackStatsJson types in angular-builder Dec 16, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks so much @duncan-c !!!

@bmayen
Copy link

bmayen commented Jan 6, 2023

Any chance we can get this in current stable version? We can't move our production app to use beta version and without this Turbosnap is a non-starter.

@shilman shilman added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Jan 11, 2023
@shilman
Copy link
Member

shilman commented Jan 11, 2023

@bmayen will do

@bmayen
Copy link

bmayen commented Jan 11, 2023

Thanks! Was opening a PR when I saw someone beat me to it #20503

@shilman shilman added patch:done Patch/release PRs already cherry-picked to main/release branch and removed patch:done Patch/release PRs already cherry-picked to main/release branch labels Jan 11, 2023
shilman added a commit that referenced this pull request Jan 11, 2023
…k-stats-json-schema

Angular: Fix webpackStatsJson types in angular-builder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
angular bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants