From cc53c3587ba9660f344bf3fc475b08926f678099 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 23 Jun 2022 10:17:34 +0200 Subject: [PATCH] fixes for prep --- lib/core-server/src/utils/open-in-browser.ts | 2 ++ lib/core-server/src/utils/watch-story-specifiers.ts | 1 + lib/manager-webpack5/prebuilt-manager.d.ts | 7 ++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/core-server/src/utils/open-in-browser.ts b/lib/core-server/src/utils/open-in-browser.ts index bf98fbf9dd4..779f72b487c 100644 --- a/lib/core-server/src/utils/open-in-browser.ts +++ b/lib/core-server/src/utils/open-in-browser.ts @@ -1,6 +1,8 @@ import { logger } from '@storybook/node-logger'; +// @ts-ignore import betterOpn from 'better-opn'; // betterOpn alias used because also loading open import open from 'open'; +// @ts-ignore import getDefaultBrowser from 'x-default-browser'; import dedent from 'ts-dedent'; diff --git a/lib/core-server/src/utils/watch-story-specifiers.ts b/lib/core-server/src/utils/watch-story-specifiers.ts index 86f34924a84..359bcde9077 100644 --- a/lib/core-server/src/utils/watch-story-specifiers.ts +++ b/lib/core-server/src/utils/watch-story-specifiers.ts @@ -1,3 +1,4 @@ +// @ts-ignore import Watchpack from 'watchpack'; import slash from 'slash'; import fs from 'fs'; diff --git a/lib/manager-webpack5/prebuilt-manager.d.ts b/lib/manager-webpack5/prebuilt-manager.d.ts index 344a47e6e1e..e467f5721ed 100644 --- a/lib/manager-webpack5/prebuilt-manager.d.ts +++ b/lib/manager-webpack5/prebuilt-manager.d.ts @@ -1 +1,6 @@ -export * from './dist/types/utils/prebuilt-manager.d'; +import type { Options } from '@storybook/core-common'; + +export function getPrebuiltDir(options: Options): Promise; + +export type DEFAULT_ADDONS = string[]; +export type IGNORED_ADDONS = string[]; \ No newline at end of file