Skip to content

Commit

Permalink
fix: add sideEffects=false to package.json
Browse files Browse the repository at this point in the history
needed for webpack tree shaking to work
  • Loading branch information
mkazlauskas committed Dec 5, 2022
1 parent 7a08c8f commit a1cb8f8
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/cardano-services-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"require": "./dist/cjs/index.js"
}
},
"sideEffects": false,
"repository": "https://github.com/input-output-hk/cardano-js-sdk",
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/cardano-services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/dapp-connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
3 changes: 3 additions & 0 deletions packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"require": "./dist/cjs/index.js"
}
},
"sideEffects": [
"./test/web-extension/extension/**/*.ts"
],
"scripts": {
"artillery:stake-pool-query": "WORKERS=1 node -r ts-node/register ../../node_modules/.bin/artillery run test/artillery/StakePoolSearch.yml",
"artillery:wallet-restoration": "WORKERS=1 node -r ts-node/register ../../node_modules/.bin/artillery run --dotenv ./.env test/artillery/wallet-restoration/WalletRestoration.yml",
Expand Down
1 change: 1 addition & 0 deletions packages/golden-test-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/input-selection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/key-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/ogmios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/projection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/util-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/util-rxjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down
1 change: 1 addition & 0 deletions packages/web-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)",
Expand Down

0 comments on commit a1cb8f8

Please sign in to comment.