From 205cca999183fbdc8e9985348e8bc5788f5756b9 Mon Sep 17 00:00:00 2001 From: Alex Batalov Date: Tue, 18 Apr 2023 03:08:02 +0400 Subject: [PATCH] Relocate @swc/core from dependencies to devDependencies and peerDependencies --- .changeset/great-bugs-provide.md | 5 +++++ README.md | 2 +- package.json | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changeset/great-bugs-provide.md diff --git a/.changeset/great-bugs-provide.md b/.changeset/great-bugs-provide.md new file mode 100644 index 0000000..47d0ed4 --- /dev/null +++ b/.changeset/great-bugs-provide.md @@ -0,0 +1,5 @@ +--- +"storybook-addon-swc": minor +--- + +Relocate @swc/core from dependencies to devDependencies and peerDependencies diff --git a/README.md b/README.md index 714d6db..9a960d8 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Storybook addon that improves build time by building with swc. ## 🚀 Installation ``` -$ npm install -D storybook-addon-swc +$ npm install -D storybook-addon-swc @swc/core ``` ## 👏 Getting Started diff --git a/package.json b/package.json index 7b454b6..e972237 100644 --- a/package.json +++ b/package.json @@ -70,15 +70,18 @@ }, "dependencies": { "@babel/runtime": "^7.17.2", - "@swc/core": "^1.2.152", "deepmerge": "^4.2.2", "swc-loader": "^0.1.15" }, "peerDependencies": { + "@swc/core": "^1.2.152", "terser-webpack-plugin": "^4.0.0 || ^5.0.0", "webpack": "^4.0.0 || ^5.0.0" }, "peerDependenciesMeta": { + "@swc/core": { + "optional": false + }, "terser-webpack-plugin": { "optional": true }, @@ -95,6 +98,7 @@ "@changesets/cli": "^2.21.0", "@preconstruct/cli": "^2.1.5", "@storybook/core-common": "^6.4.19", + "@swc/core": "^1.2.152", "@swc/jest": "^0.2.17", "@types/jest": "^27.4.0", "@types/webpack": "^5.28.0",