From a04ac3370d9b7da4af8b277746d35595f2035fa3 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 17 Feb 2023 23:33:37 +0800 Subject: [PATCH] Revert upgrade to react-docgen-typescript-plugin --- code/presets/react-webpack/package.json | 2 +- .../src/framework-preset-react-docs.test.ts | 2 +- .../src/framework-preset-react-docs.ts | 2 +- code/presets/react-webpack/src/types.ts | 2 +- code/yarn.lock | 38 +++++++++---------- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index 00f53ade5107..52d7de48d250 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -75,12 +75,12 @@ "@storybook/docs-tools": "7.0.0-beta.49", "@storybook/node-logger": "7.0.0-beta.49", "@storybook/react": "7.0.0-beta.49", + "@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0", "@types/node": "^16.0.0", "@types/semver": "^7.3.4", "babel-plugin-add-react-displayname": "^0.0.5", "babel-plugin-react-docgen": "^4.2.1", "fs-extra": "^11.1.0", - "react-docgen-typescript-plugin": "^1.0.5", "react-refresh": "^0.11.0", "semver": "^7.3.7" }, diff --git a/code/presets/react-webpack/src/framework-preset-react-docs.test.ts b/code/presets/react-webpack/src/framework-preset-react-docs.test.ts index 05f892eaa370..991f084746ba 100644 --- a/code/presets/react-webpack/src/framework-preset-react-docs.test.ts +++ b/code/presets/react-webpack/src/framework-preset-react-docs.test.ts @@ -1,4 +1,4 @@ -import ReactDocgenTypescriptPlugin from 'react-docgen-typescript-plugin'; +import ReactDocgenTypescriptPlugin from '@storybook/react-docgen-typescript-plugin'; import type { TypescriptOptions } from '@storybook/core-webpack'; import * as preset from './framework-preset-react-docs'; diff --git a/code/presets/react-webpack/src/framework-preset-react-docs.ts b/code/presets/react-webpack/src/framework-preset-react-docs.ts index b5f081c2be94..b08a3e427d4f 100644 --- a/code/presets/react-webpack/src/framework-preset-react-docs.ts +++ b/code/presets/react-webpack/src/framework-preset-react-docs.ts @@ -1,4 +1,4 @@ -import ReactDocgenTypescriptPlugin from 'react-docgen-typescript-plugin'; +import ReactDocgenTypescriptPlugin from '@storybook/react-docgen-typescript-plugin'; import { hasDocsOrControls } from '@storybook/docs-tools'; import type { StorybookConfig } from './types'; diff --git a/code/presets/react-webpack/src/types.ts b/code/presets/react-webpack/src/types.ts index 300d7789988e..3582aea5d7b2 100644 --- a/code/presets/react-webpack/src/types.ts +++ b/code/presets/react-webpack/src/types.ts @@ -3,7 +3,7 @@ import type { StorybookConfig as StorybookConfigBase, TypescriptOptions as TypescriptOptionsBase, } from '@storybook/core-webpack'; -import type { PluginOptions as ReactDocgenTypescriptOptions } from 'react-docgen-typescript-plugin'; +import type { PluginOptions as ReactDocgenTypescriptOptions } from '@storybook/react-docgen-typescript-plugin'; export type { BuilderResult } from '@storybook/core-webpack'; diff --git a/code/yarn.lock b/code/yarn.lock index 4b2a4eac3694..84df64db4d3b 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6143,12 +6143,12 @@ __metadata: "@storybook/docs-tools": 7.0.0-beta.49 "@storybook/node-logger": 7.0.0-beta.49 "@storybook/react": 7.0.0-beta.49 + "@storybook/react-docgen-typescript-plugin": 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0 "@types/node": ^16.0.0 "@types/semver": ^7.3.4 babel-plugin-add-react-displayname: ^0.0.5 babel-plugin-react-docgen: ^4.2.1 fs-extra: ^11.1.0 - react-docgen-typescript-plugin: ^1.0.5 react-refresh: ^0.11.0 semver: ^7.3.7 typescript: ~4.9.3 @@ -6342,6 +6342,24 @@ __metadata: languageName: unknown linkType: soft +"@storybook/react-docgen-typescript-plugin@npm:1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0": + version: 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0 + resolution: "@storybook/react-docgen-typescript-plugin@npm:1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0" + dependencies: + debug: ^4.1.1 + endent: ^2.0.1 + find-cache-dir: ^3.3.1 + flat-cache: ^3.0.4 + micromatch: ^4.0.2 + react-docgen-typescript: ^2.1.1 + tslib: ^2.0.0 + peerDependencies: + typescript: ">= 3.x" + webpack: ">= 4" + checksum: 2d3ab49e4858d5f28f36b5bd0e30f3d3450bc7d9865cd4fbe65a35085ae63feff9556a3265b594a2c84b03c66f009dc8b057802f3ca0f76b961d51536835cb8f + languageName: node + linkType: hard + "@storybook/react-docgen-typescript-plugin@npm:canary": version: 1.0.2--canary.7.391457fcf6c823971cf02d8e74dbf8e242872b26.0 resolution: "@storybook/react-docgen-typescript-plugin@npm:1.0.2--canary.7.391457fcf6c823971cf02d8e74dbf8e242872b26.0" @@ -23928,24 +23946,6 @@ __metadata: languageName: node linkType: hard -"react-docgen-typescript-plugin@npm:^1.0.5": - version: 1.0.5 - resolution: "react-docgen-typescript-plugin@npm:1.0.5" - dependencies: - debug: ^4.1.1 - endent: ^2.0.1 - find-cache-dir: ^3.3.1 - flat-cache: ^3.0.4 - micromatch: ^4.0.2 - react-docgen-typescript: ^2.2.2 - tslib: ^2.0.0 - peerDependencies: - typescript: ">= 4.x" - webpack: ">= 4" - checksum: 007a689f4ae5aae7b1a89b2b54b1e3806e4316677da24977516b794aa9252a16ee1a103fc0b254afb2961530909326df49052ade8dcaf96e6b6ea06adf34f6bd - languageName: node - linkType: hard - "react-docgen-typescript@npm:^2.1.1, react-docgen-typescript@npm:^2.2.2": version: 2.2.2 resolution: "react-docgen-typescript@npm:2.2.2"