Merge branch 'clean-publish'

https://codeberg.org/kytta/shareon/pulls/11
pull/45/head
Nikita Karamov 2022-02-11 14:56:11 +01:00
commit a4a27fb567
No known key found for this signature in database
GPG Key ID: 3C8E688C96EEB9C9
1 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "shareon", "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", "description": "Lightweight, stylish and ethical share buttons for popular social networks",
"license": "MIT", "license": "MIT",
"homepage": "https://shareon.js.org", "homepage": "https://shareon.js.org",
@ -42,11 +42,14 @@
"lint": "prettier --check . && eslint .", "lint": "prettier --check . && eslint .",
"size": "size-limit", "size": "size-limit",
"test": "pnpm run lint && pnpm run build && pnpm run size", "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": { "devDependencies": {
"@size-limit/preset-small-lib": "^7.0.5", "@size-limit/preset-small-lib": "^7.0.5",
"autoprefixer": "^10.4.2", "autoprefixer": "^10.4.2",
"clean-publish": "^4.0.0",
"eslint": "^8.8.0", "eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-unicorn": "^40.1.0", "eslint-plugin-unicorn": "^40.1.0",
@ -69,5 +72,12 @@
"limit": "1 KB", "limit": "1 KB",
"path": "./dist/shareon.es.js" "path": "./dist/shareon.es.js"
} }
] ],
"publishConfig": {
"directory": "package"
},
"clean-publish": {
"withoutPublish": true,
"tempDir": "package"
}
} }