@iress-oss/ids-storybook-config 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +8 -1
- package/dist/main.js +348 -347
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StorybookConfig } from '@storybook/react-vite';
|
|
2
|
+
import { UserConfig } from 'vite';
|
|
2
3
|
interface MainConfig extends Pick<Partial<StorybookConfig>, 'stories'> {
|
|
3
4
|
/**
|
|
4
5
|
* The path to the folder using Storybook.
|
|
@@ -30,10 +31,16 @@ interface MainConfig extends Pick<Partial<StorybookConfig>, 'stories'> {
|
|
|
30
31
|
* If not provided, no alias resolution will be performed.
|
|
31
32
|
*/
|
|
32
33
|
tsConfigWithAlias?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional function to further modify the Vite configuration.
|
|
36
|
+
* @param config - The current Vite configuration.
|
|
37
|
+
* @returns The modified Vite configuration.
|
|
38
|
+
*/
|
|
39
|
+
viteFinal?: (config: UserConfig) => UserConfig;
|
|
33
40
|
}
|
|
34
41
|
/**
|
|
35
42
|
* Function to get the main Storybook configuration.
|
|
36
43
|
* Used to centralise the configuration for all Storybook instances in multiple repositories.
|
|
37
44
|
*/
|
|
38
|
-
export declare const getMainConfig: ({ absolutePath, proxyChildren, removeVitePluginNames, stories, tsConfigWithAlias, }: MainConfig) => StorybookConfig;
|
|
45
|
+
export declare const getMainConfig: ({ absolutePath, proxyChildren, removeVitePluginNames, stories, tsConfigWithAlias, viteFinal, }: MainConfig) => StorybookConfig;
|
|
39
46
|
export {};
|