From 5437965ac772772e5645344e7d83009837c79110 Mon Sep 17 00:00:00 2001 From: Alexey Sudilovskiy Date: Thu, 17 Aug 2023 13:12:03 +0200 Subject: [PATCH 1/2] feat: add `sideEffects` --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 89b85539..8a85e5e5 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "publishConfig": { "access": "public" }, + "sideEffects": ["*.css"], "dependencies": { "@gravity-ui/date-utils": "^1.4.1", "@gravity-ui/yagr": "^3.7.8", From 7500f93128028cad2e8bf8a5a23c268f076231da Mon Sep 17 00:00:00 2001 From: Alexey Sudilovskiy Date: Thu, 17 Aug 2023 13:27:28 +0200 Subject: [PATCH 2/2] feat: exclude test and stories from package --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a85e5e5..a4e4a84f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "main": "build/index.js", "typings": "build/index.d.ts", "files": [ - "build" + "build", + "!**/__tests__/**", + "!**/__stories__/**" ], "publishConfig": { "access": "public"