Skip to content

Commit

Permalink
Add sideEffects to package.json to improve tree-shaking (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 authored Aug 9, 2023
1 parent ec5fd34 commit 077d2cc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/forty-jokes-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@safe-global/safe-apps-react-sdk': minor
'@safe-global/safe-apps-provider': minor
'@safe-global/safe-apps-sdk': minor
---

Add sideEffects false to package.json to improve tree-shaking
1 change: 1 addition & 0 deletions packages/safe-apps-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"CHANGELOG.md",
"README.md"
],
"sideEffects": false,
"scripts": {
"build": "yarn rimraf dist && tsc",
"test": "echo No tests specified"
Expand Down
1 change: 1 addition & 0 deletions packages/safe-apps-react-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"CHANGELOG.md",
"README.md"
],
"sideEffects": false,
"license": "MIT",
"author": "Safe (https://safe.global)",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/safe-apps-sdk/dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
"CHANGELOG.md",
"README.md"
],
"sideEffects": false,
"keywords": [
"Safe",
"sdk",
"apps"
],
"scripts": {
"test": "jest",
"format-dist": "sed -i '' 's/\"files\":/\"_files\":/' dist/package.json",
"format-dist": "sed -i 's/\"files\":/\"_files\":/' dist/package.json",
"build": "yarn rimraf dist && tsc && yarn format-dist"
},
"author": "Safe (https://safe.global)",
Expand Down
1 change: 1 addition & 0 deletions packages/safe-apps-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"CHANGELOG.md",
"README.md"
],
"sideEffects": false,
"keywords": [
"Safe",
"sdk",
Expand Down

0 comments on commit 077d2cc

Please sign in to comment.