Skip to content

Commit

Permalink
Relocate @swc/core from dependencies to devDependencies and peerDepen…
Browse files Browse the repository at this point in the history
…dencies
  • Loading branch information
radist2s committed Apr 17, 2023
1 parent 09c0a86 commit 205cca9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-bugs-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"storybook-addon-swc": minor
---

Relocate @swc/core from dependencies to devDependencies and peerDependencies
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand All @@ -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",
Expand Down

0 comments on commit 205cca9

Please sign in to comment.