-
-
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.
- Loading branch information
1 parent
82b63d5
commit ec359a4
Showing
11 changed files
with
16 additions
and
80 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'), | ||
}; |