From 2445316a43be0ad39d485dbfc81c137404e5a187 Mon Sep 17 00:00:00 2001 From: Viki Date: Mon, 24 Jun 2024 17:35:52 +0800 Subject: [PATCH] chore: mark `sideEffect` to false in package.json --- license | 21 --------------------- package.json | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 23 deletions(-) delete mode 100644 license diff --git a/license b/license deleted file mode 100644 index 29b66865..00000000 --- a/license +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024-Present - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/package.json b/package.json index c2dc105f..216bf0e6 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "exports": { ".": { "types": { - "require": "./dist/index.d.cts", "import": "./dist/index.d.ts", + "require": "./dist/index.d.cts", "default": "./dist/index.d.ts" }, "import": "./dist/index.js", @@ -31,9 +31,19 @@ "dist" ], "homepage": "https://sheinsight.github.io/react-use/", + "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/sheinsight/react-use" + "url": "git+https://github.com/sheinsight/react-use.git" + }, + "bugs": "https://github.com/sheinsight/react-use/issues", + "typesVersions": { + "*": { + "*": [ + "./dist/*", + "./dist/index.d.ts" + ] + } }, "scripts": { "dev": "tsup --watch",