From f4cb68c56749491681309a1342aa037aaf0771b6 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 17 Dec 2020 13:57:41 +0100 Subject: [PATCH] Mark detectPackage as sideEffect --- packages/keyring/package.json | 5 ++++- packages/util-crypto/package.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/keyring/package.json b/packages/keyring/package.json index eee900574..4bdc35e17 100644 --- a/packages/keyring/package.json +++ b/packages/keyring/package.json @@ -8,7 +8,10 @@ "license": "Apache-2.0", "main": "index.js", "module": "index.mjs", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "repository": "github:polkadot-js/common", "bugs": "https://github.com/polkadot-js/common/issues", "homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme", diff --git a/packages/util-crypto/package.json b/packages/util-crypto/package.json index a55702c60..2041f9594 100644 --- a/packages/util-crypto/package.json +++ b/packages/util-crypto/package.json @@ -4,7 +4,10 @@ "description": "A collection of useful crypto utilities for @polkadot", "main": "index.js", "module": "index.mjs", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "author": "Jaco Greeff ", "maintainers": [], "contributors": [],