Skip to content

Commit

Permalink
chore: remove 'vite-plugin-turbosnap' dependency (#2495)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga authored Mar 18, 2024
1 parent 57f8915 commit d96ae68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { StorybookConfig } from '@storybook/web-components-vite';
import { type BuildOptions, type UserConfig, mergeConfig } from 'vite';
import turbosnap from 'vite-plugin-turbosnap';

const config: StorybookConfig = {
stories: ['../src/**/*.stories.ts'],
Expand Down Expand Up @@ -30,14 +29,6 @@ const config: StorybookConfig = {
return mergeConfig(config, <UserConfig>{
assetsInclude: ['src/**/*.md'],
build,
plugins: process.env.CHROMATIC
? [
// Creates the webpack-stats.json file which is needed by chromatic
turbosnap({
rootDir: config.root ?? process.cwd(),
}),
]
: [],
});
},
};
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"postinstall": "yarn playwright install",
"build:components": "vite build --config src/components/vite.config.ts",
"build:react": "vite build --config src/react/vite.config.ts",
"build:storybook": "storybook build --quiet --output-dir dist/storybook",
"build:storybook": "storybook build --quiet --output-dir dist/storybook --stats-json",
"build": "npm-run-all --sequential build:components build:react build:storybook",
"docs": "npm-run-all --sequential docs:manifest docs:to-md",
"docs:manifest": "custom-elements-manifest analyze --config config/custom-elements-manifest.config.js",
Expand Down Expand Up @@ -119,8 +119,7 @@
"tsx": "4.7.1",
"typescript": "5.4.2",
"vite": "5.1.6",
"vite-plugin-dts": "3.7.3",
"vite-plugin-turbosnap": "1.0.3"
"vite-plugin-dts": "3.7.3"
},
"resolutions": {
"@types/node": "20.11.28",
Expand Down

0 comments on commit d96ae68

Please sign in to comment.