From 077d2cc6a5af461d17e5159235542e33bb481674 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Wed, 9 Aug 2023 11:16:20 +0200 Subject: [PATCH] Add sideEffects to package.json to improve tree-shaking (#501) --- .changeset/forty-jokes-sing.md | 7 +++++++ packages/safe-apps-provider/package.json | 1 + packages/safe-apps-react-sdk/package.json | 1 + packages/safe-apps-sdk/dist/package.json | 3 ++- packages/safe-apps-sdk/package.json | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/forty-jokes-sing.md diff --git a/.changeset/forty-jokes-sing.md b/.changeset/forty-jokes-sing.md new file mode 100644 index 00000000..bbdf772b --- /dev/null +++ b/.changeset/forty-jokes-sing.md @@ -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 diff --git a/packages/safe-apps-provider/package.json b/packages/safe-apps-provider/package.json index 0d2ba9d1..c2b123ed 100644 --- a/packages/safe-apps-provider/package.json +++ b/packages/safe-apps-provider/package.json @@ -10,6 +10,7 @@ "CHANGELOG.md", "README.md" ], + "sideEffects": false, "scripts": { "build": "yarn rimraf dist && tsc", "test": "echo No tests specified" diff --git a/packages/safe-apps-react-sdk/package.json b/packages/safe-apps-react-sdk/package.json index 58601ca6..0c60537f 100644 --- a/packages/safe-apps-react-sdk/package.json +++ b/packages/safe-apps-react-sdk/package.json @@ -10,6 +10,7 @@ "CHANGELOG.md", "README.md" ], + "sideEffects": false, "license": "MIT", "author": "Safe (https://safe.global)", "dependencies": { diff --git a/packages/safe-apps-sdk/dist/package.json b/packages/safe-apps-sdk/dist/package.json index 5a35c7fe..a0339cd5 100644 --- a/packages/safe-apps-sdk/dist/package.json +++ b/packages/safe-apps-sdk/dist/package.json @@ -10,6 +10,7 @@ "CHANGELOG.md", "README.md" ], + "sideEffects": false, "keywords": [ "Safe", "sdk", @@ -17,7 +18,7 @@ ], "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)", diff --git a/packages/safe-apps-sdk/package.json b/packages/safe-apps-sdk/package.json index d91a04c4..ee1b4a8c 100644 --- a/packages/safe-apps-sdk/package.json +++ b/packages/safe-apps-sdk/package.json @@ -10,6 +10,7 @@ "CHANGELOG.md", "README.md" ], + "sideEffects": false, "keywords": [ "Safe", "sdk",