-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.ts
67 lines (67 loc) · 1.51 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import path from "path";
import type { StorybookConfig } from "@storybook/react-vite";
const config: StorybookConfig = {
stories: [
"../stories/Introduction.stories.mdx",
"../stories",
"../../../packages/**/*.stories.tsx",
],
addons: [
{
name: "@storybook/addon-essentials",
options: {
actions: false,
},
},
"@storybook/addon-a11y",
"@storybook/addon-actions",
"@storybook/addon-toolbars",
"storybook-addon-designs",
"storybook-addon-rtl",
],
staticDirs: ["../public"],
framework: {
name: "@storybook/react-vite",
options: {},
},
core: {
disableTelemetry: true,
},
typescript: {
reactDocgen: "react-docgen",
},
async viteFinal(config) {
return {
...config,
define: {
"process.env": {},
},
resolve: {
alias: [
{
find: "@cambly/syntax-core",
replacement: path.resolve(
__dirname,
"../../../packages/syntax-core/",
),
},
{
find: "@cambly/syntax-design-tokens",
replacement: path.resolve(
__dirname,
"../../../packages/syntax-design-tokens/",
),
},
{
find: "@cambly/syntax-floating-components",
replacement: path.resolve(
__dirname,
"../../../packages/syntax-floating-components/",
),
},
],
},
};
},
};
export default config;