-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25740 from storybookjs/valentin/fix-storybook-con…
…fig-typing-for-webpack-projects Webpack: Update StorybookConfig import in core-webpack types.ts
- Loading branch information
Showing
12 changed files
with
15 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import type { PresetProperty } from '@storybook/types'; | ||
import { dirname, join } from 'path'; | ||
import type { StorybookConfig } from './types'; | ||
|
||
function getAbsolutePath<I extends string>(value: I): I { | ||
return dirname(require.resolve(join(value, 'package.json'))) as any; | ||
} | ||
|
||
export const core: PresetProperty<'core', StorybookConfig> = { | ||
export const core: PresetProperty<'core'> = { | ||
builder: getAbsolutePath('@storybook/builder-vite'), | ||
renderer: getAbsolutePath('@storybook/html'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import type { PresetProperty } from '@storybook/types'; | ||
import { dirname, join } from 'path'; | ||
import type { StorybookConfig } from './types'; | ||
|
||
const getAbsolutePath = <I extends string>(input: I): I => | ||
dirname(require.resolve(join(input, 'package.json'))) as any; | ||
|
||
export const core: PresetProperty<'core', StorybookConfig> = { | ||
export const core: PresetProperty<'core'> = { | ||
builder: getAbsolutePath('@storybook/builder-vite'), | ||
renderer: getAbsolutePath('@storybook/web-components'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters