Skip to content

Commit

Permalink
⬆️ Oppdatert storybook til 7.2 (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh authored Aug 2, 2023
1 parent 8a82bb4 commit 5b2669d
Show file tree
Hide file tree
Showing 3 changed files with 1,822 additions and 1,041 deletions.
15 changes: 8 additions & 7 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const storyIndexers = require("./indexer");

const path = require("path");
const { mergeConfig } = require("vite");

Expand Down Expand Up @@ -59,15 +58,17 @@ module.exports = {
},
async viteFinal(config) {
return mergeConfig(config, {
define: { "process.env": {} },
define: {
"process.env": {},
},
resolve: {
alias: [
/*
// Example
{
find: "@components",
replacement: path.resolve(__dirname, "./src/components"),
}, */
// Example
{
find: "@components",
replacement: path.resolve(__dirname, "./src/components"),
}, */
{
find: "components",
replacement: path.resolve(
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,21 @@
},
"devDependencies": {
"@changesets/cli": "2.25.0",
"@storybook/addon-a11y": "7.0.4",
"@storybook/addon-actions": "7.0.4",
"@storybook/addon-essentials": "7.0.4",
"@storybook/addon-interactions": "7.0.4",
"@storybook/addon-storysource": "7.0.4",
"@storybook/addons": "7.0.4",
"@storybook/csf-tools": "7.0.4",
"@storybook/addon-a11y": "7.2.0",
"@storybook/addon-actions": "7.2.0",
"@storybook/addon-essentials": "7.2.0",
"@storybook/addon-interactions": "7.2.0",
"@storybook/addon-storysource": "7.2.0",
"@storybook/addons": "7.2.0",
"@storybook/csf-tools": "7.2.0",
"@storybook/jest": "^0.1.0",
"@storybook/react": "7.0.4",
"@storybook/react-vite": "7.0.4",
"@storybook/testing-library": "^0.1.0",
"@storybook/theming": "7.0.4",
"@storybook/react": "7.2.0",
"@storybook/react-vite": "7.2.0",
"@storybook/testing-library": "^0.2.0",
"@storybook/theming": "7.2.0",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@typescript-eslint/parser": "^5.41.0",
"@whitespace/storybook-addon-html": "^5.1.4",
"@whitespace/storybook-addon-html": "^5.1.6",
"chromatic": "6.5.4",
"concurrently": "7.2.1",
"cross-env": "^7.0.0",
Expand All @@ -244,7 +244,7 @@
"react": "^18.0.0",
"react-docgen-typescript": "2.2.2",
"react-dom": "^18.0.0",
"storybook": "7.0.4",
"storybook": "7.2.0",
"stylelint": "^14.8.5",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^25.0.0",
Expand Down
Loading

0 comments on commit 5b2669d

Please sign in to comment.