Skip to content

Commit

Permalink
fix: add @storybook/theming manager-api & types/node packages
Browse files Browse the repository at this point in the history
  • Loading branch information
משה וילנר committed Nov 8, 2024
1 parent 192c4c6 commit 50e4c34
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 75 deletions.
13 changes: 8 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
import type { StorybookConfig } from "@storybook/react-webpack5";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.tsx"],

addons: [
Expand All @@ -7,22 +9,21 @@ module.exports = {
"@storybook/addon-a11y",
{
name: "@storybook/addon-styling-webpack",

options: {
rules: [
{
test: /\.css$/,
sideEffects: true,
use: [
require.resolve("style-loader"),
"style-loader",
{
loader: require.resolve("css-loader"),
loader: "css-loader",
options: {
importLoaders: 1,
},
},
{
loader: require.resolve("postcss-loader"),
loader: "postcss-loader",
options: {
implementation: require.resolve("postcss"),
},
Expand Down Expand Up @@ -57,3 +58,5 @@ module.exports = {

staticDirs: [{ from: "../src/assets", to: "/assets" }],
};

export default config;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"@testing-library/react-hooks": "8.0.1",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.14",
"@types/node": "^22.7.9",
"@types/prismjs": "1.26.5",
"@types/react": "16.14.62",
"@types/react-dom": "16.9.24",
Expand Down
Loading

0 comments on commit 50e4c34

Please sign in to comment.