dev: upgrade storybook to 6.5.17 for TypeScript 5 compatibility (#39745)

There's been a Storybook breakage with Typescript 5 detailed here: https://github.com/hipstersmoothie/react-docgen-typescript-plugin/issues/78

This fix should allow us to continue using Storybook 6 until we upgrade to Storybook 7 down the road.

Even though it relies on an alpha release of 6.5.17-alpha, the only change in the alpha is https://github.com/storybookjs/storybook/pull/21745.

It should be an acceptable risk considering that Storybook is internal dev tooling for now.
This commit is contained in:
RJ 2023-08-15 16:13:42 +10:00 committed by GitHub
parent 728c0db95f
commit 3611fafe79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1736 additions and 2195 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Upgraded Storybook to 6.5.17-alpha.0 for TypeScript 5 compatibility

View File

@ -100,18 +100,18 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.17.5", "@babel/core": "^7.17.5",
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@storybook/addon-actions": "^6.4.0", "@storybook/addon-actions": "^6.5.17-alpha.0",
"@storybook/addon-console": "^1.2.3", "@storybook/addon-console": "^1.2.3",
"@storybook/addon-controls": "^6.4.19", "@storybook/addon-controls": "^6.5.17-alpha.0",
"@storybook/addon-docs": "^6.4.19", "@storybook/addon-docs": "^6.5.17-alpha.0",
"@storybook/addon-knobs": "^6.4.0", "@storybook/addon-knobs": "^6.4.0",
"@storybook/addon-links": "^6.4.19", "@storybook/addon-links": "^6.5.17-alpha.0",
"@storybook/addons": "^6.4.0", "@storybook/addons": "^6.5.17-alpha.0",
"@storybook/api": "^6.4.0", "@storybook/api": "^6.5.17-alpha.0",
"@storybook/components": "^6.4.0", "@storybook/components": "^6.5.17-alpha.0",
"@storybook/core-events": "^6.4.0", "@storybook/core-events": "^6.5.17-alpha.0",
"@storybook/react": "^6.4.19", "@storybook/react": "^6.5.17-alpha.0",
"@storybook/theming": "^6.4.0", "@storybook/theming": "^6.5.17-alpha.0",
"@testing-library/dom": "^8.11.3", "@testing-library/dom": "^8.11.3",
"@testing-library/jest-dom": "^5.16.2", "@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3", "@testing-library/react": "^12.1.3",

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Upgraded Storybook to 6.5.17-alpha.0 for TypeScript 5 compatibility

View File

@ -49,9 +49,9 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.17.5", "@babel/core": "^7.17.5",
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@storybook/addon-actions": "^6.4.0", "@storybook/addon-actions": "^6.5.17-alpha.0",
"@storybook/addon-console": "^1.2.3", "@storybook/addon-console": "^1.2.3",
"@storybook/react": "^6.4.19", "@storybook/react": "^6.5.17-alpha.0",
"@testing-library/dom": "^8.11.3", "@testing-library/dom": "^8.11.3",
"@testing-library/react": "^12.1.3", "@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^13.5.0", "@testing-library/user-event": "^13.5.0",

File diff suppressed because it is too large Load Diff

View File

@ -28,23 +28,23 @@
"@babel/plugin-proposal-class-properties": "^7.16.7", "@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/preset-env": "^7.16.11", "@babel/preset-env": "^7.16.11",
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@storybook/addon-a11y": "^6.4.19", "@storybook/addon-a11y": "^6.5.17-alpha.0",
"@storybook/addon-actions": "^6.4.19", "@storybook/addon-actions": "^6.5.17-alpha.0",
"@storybook/addon-console": "^1.2.3", "@storybook/addon-console": "^1.2.3",
"@storybook/addon-controls": "^6.4.19", "@storybook/addon-controls": "^6.5.17-alpha.0",
"@storybook/addon-docs": "^6.4.19", "@storybook/addon-docs": "^6.5.17-alpha.0",
"@storybook/addon-knobs": "^6.4.0", "@storybook/addon-knobs": "^6.4.0",
"@storybook/addon-links": "^6.4.19", "@storybook/addon-links": "^6.5.17-alpha.0",
"@storybook/addon-storysource": "^6.4.19", "@storybook/addon-storysource": "^6.5.17-alpha.0",
"@storybook/addon-viewport": "^6.4.19", "@storybook/addon-viewport": "^6.5.17-alpha.0",
"@storybook/addons": "^6.4.19", "@storybook/addons": "^6.5.17-alpha.0",
"@storybook/api": "^6.4.19", "@storybook/api": "^6.5.17-alpha.0",
"@storybook/builder-webpack5": "^6.4.19", "@storybook/builder-webpack5": "^6.5.17-alpha.0",
"@storybook/components": "^6.4.19", "@storybook/components": "^6.5.17-alpha.0",
"@storybook/core-events": "^6.4.19", "@storybook/core-events": "^6.5.17-alpha.0",
"@storybook/manager-webpack5": "^6.4.19", "@storybook/manager-webpack5": "^6.5.17-alpha.0",
"@storybook/react": "^6.4.19", "@storybook/react": "^6.5.17-alpha.0",
"@storybook/theming": "^6.4.19", "@storybook/theming": "^6.5.17-alpha.0",
"@woocommerce/eslint-plugin": "workspace:*", "@woocommerce/eslint-plugin": "workspace:*",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",