From 83acd86c50c3f31fc72e67e68fc672b0ee011377 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Wed, 15 Feb 2023 09:22:39 +0800 Subject: [PATCH] Upgrade 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 | 40 +++++++++---------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index b56d8902f28..00bfb575ea0 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.47", "@storybook/node-logger": "7.0.0-beta.47", "@storybook/react": "7.0.0-beta.47", - "@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 991f084746b..05f892eaa37 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 '@storybook/react-docgen-typescript-plugin'; +import ReactDocgenTypescriptPlugin from '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 b08a3e427d4..b5f081c2be9 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 '@storybook/react-docgen-typescript-plugin'; +import ReactDocgenTypescriptPlugin from '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 3582aea5d7b..300d7789988 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 '@storybook/react-docgen-typescript-plugin'; +import type { PluginOptions as ReactDocgenTypescriptOptions } from 'react-docgen-typescript-plugin'; export type { BuilderResult } from '@storybook/core-webpack'; diff --git a/code/yarn.lock b/code/yarn.lock index 92535eba8c5..a0a8d11ff91 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6074,12 +6074,12 @@ __metadata: "@storybook/docs-tools": 7.0.0-beta.47 "@storybook/node-logger": 7.0.0-beta.47 "@storybook/react": 7.0.0-beta.47 - "@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 @@ -6249,24 +6249,6 @@ __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-vite@workspace:*, @storybook/react-vite@workspace:frameworks/react-vite": version: 0.0.0-use.local resolution: "@storybook/react-vite@workspace:frameworks/react-vite" @@ -23439,7 +23421,25 @@ __metadata: languageName: node linkType: hard -"react-docgen-typescript@npm:^2.1.1, react-docgen-typescript@npm:^2.2.2": +"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.2.2": version: 2.2.2 resolution: "react-docgen-typescript@npm:2.2.2" peerDependencies: