Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Drop chromatic from dependencies (#1370)

Bogdan Chadkind0f5146cefbe
diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml
index 57cca36a30..4f687f3874 100644
--- a/.github/workflows/chromatic.yml
+++ b/.github/workflows/chromatic.yml
@@ -52,9 +52,6 @@ jobs:
- uses: ./.github/actions/ci-setup
- # only packages have to be built as they might be imported by Storybooks
- - run: pnpm build-packages
-
- name: Chromatic
id: chromatic
uses: chromaui/action@v1
@@ -80,8 +77,6 @@ jobs:
- uses: ./.github/actions/ci-setup
- - run: DATABASE_URL="-" AUTH_SECRET="-" pnpm build
-
- name: Chromatic
id: chromatic
uses: chromaui/action@v1
diff --git a/package.json b/package.json
index d5234de488..3a44ed3324 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,6 @@
"@storybook/react": "^6.5.16",
"@types/css-tree": "^2.0.0",
"@webstudio-is/eslint-config-custom": "workspace:^",
- "chromatic": "^6.11.4",
"nano-staged": "^0.8.0",
"prettier": "2.8.7",
"simple-git-hooks": "^2.8.1",
diff --git a/packages/storybook-config/index.js b/packages/storybook-config/index.js
index 381e52e5e6..f55eef1808 100644
--- a/packages/storybook-config/index.js
+++ b/packages/storybook-config/index.js
@@ -8,4 +8,12 @@ module.exports = {
core: {
builder: "@storybook/builder-vite",
},
+ async viteFinal(config) {
+ return {
+ ...config,
+ resolve: {
+ conditions: ["source", "import", "module", "browser", "default"],
+ },
+ };
+ },
};
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ff7831a3a4..cfd8429477 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -24,9 +24,6 @@ importers:
'@webstudio-is/eslint-config-custom':
specifier: workspace:^
version: link:packages/eslint-config-custom
- chromatic:
- specifier: ^6.11.4
- version: 6.11.4
nano-staged:
specifier: ^0.8.0
version: 0.8.0
@@ -10053,14 +10050,6 @@ packages:
engines: {node: '>=10'}
dev: true
- resolution: {integrity: sha512-f1TcuIXKjGUuOjPuwFF44kzbuEcESFcDxHzrzWPLmHuC90dV8HLxbufqYaTOBYMO/rJ32Zftb7S9pXuF/Rhfog==}
- hasBin: true
- dependencies:
- '@discoveryjs/json-ext': 0.5.7
- '@types/webpack-env': 1.18.0
- dev: true
-
resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==}
engines: {node: '>=6.0'}