From db92342732288dab1ebc70ee8580e62c443ae455 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Fri, 11 Feb 2022 14:49:03 +0100 Subject: [PATCH 1/2] Add clean-publish --- package.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0d5a86c..e8b1ee6 100644 --- a/package.json +++ b/package.json @@ -42,11 +42,14 @@ "lint": "prettier --check . && eslint .", "size": "size-limit", "test": "pnpm run lint && pnpm run build && pnpm run size", - "postversion": "pnpm run build" + "postversion": "pnpm run build", + "prepublishOnly": "rm -rf ./package && clean-publish", + "postpublish": "rm -rf ./package" }, "devDependencies": { "@size-limit/preset-small-lib": "^7.0.5", "autoprefixer": "^10.4.2", + "clean-publish": "^4.0.0", "eslint": "^8.8.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-unicorn": "^40.1.0", @@ -69,5 +72,12 @@ "limit": "1 KB", "path": "./dist/shareon.es.js" } - ] + ], + "publishConfig": { + "directory": "package" + }, + "clean-publish": { + "withoutPublish": true, + "tempDir": "package" + } } From 56b90f700609a7b2e6edd0c628ceb42cb31e14b3 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Fri, 11 Feb 2022 14:49:28 +0100 Subject: [PATCH 2/2] v2.0.0-beta.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e8b1ee6..94d5361 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shareon", - "version": "2.0.0-beta.1", + "version": "2.0.0-beta.2", "description": "Lightweight, stylish and ethical share buttons for popular social networks", "license": "MIT", "homepage": "https://shareon.js.org",