shareon/package.json

92 lines
2.3 KiB
JSON

{
"name": "shareon",
"version": "2.0.1",
"description": "Lightweight, stylish and ethical share buttons for popular social networks",
"license": "MIT",
"homepage": "https://shareon.js.org",
"keywords": [
"share buttons",
"sharing",
"social networks"
],
"repository": {
"type": "git",
"url": "https://github.com/kytta/shareon.git"
},
"bugs": {
"url": "https://github.com/kytta/shareon/issues"
},
"author": {
"name": "Nikita Karamov",
"email": "me@kytta.dev",
"url": "https://www.kytta.dev/"
},
"funding": [
"https://github.com/sponsors/kytta/",
"https://liberapay.com/kytta",
"https://www.paypal.com/paypalme/NickKaramoff"
],
"type": "module",
"main": "./dist/shareon.umd.js",
"unpkg": "./dist/shareon.iife.js",
"jsdelivr": "./dist/shareon.iife.js",
"module": "./dist/shareon.es.js",
"exports": {
".": {
"import": "./dist/shareon.es.js",
"require": "./dist/shareon.umd.js"
},
"./css": "./dist/shareon.min.css"
},
"files": [
"dist"
],
"scripts": {
"build": "pnpm run build:js && pnpm run build:css",
"build:js": "vite build",
"build:css": "postcss src/shareon.css -o dist/shareon.min.css --map",
"dev": "vite",
"lint": "prettier --check . && eslint .",
"size": "size-limit",
"test": "pnpm run lint && pnpm run build && pnpm run size",
"postversion": "pnpm run build",
"prepublishOnly": "rm -rf ./package && clean-publish",
"postpublish": "rm -rf ./package"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^8.1.0",
"autoprefixer": "^10.4.13",
"clean-publish": "^4.0.1",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-unicorn": "^44.0.2",
"postcss": "^8.4.19",
"postcss-banner": "^4.0.1",
"postcss-calc": "^8.2.4",
"postcss-cli": "^10.0.0",
"postcss-css-variables": "^0.18.0",
"postcss-csso": "^6.0.1",
"prettier": "^2.7.1",
"size-limit": "^8.1.0",
"vite": "^4.0.4"
},
"browserslist": "> 0.3%, last 2 versions, Firefox ESR, not dead",
"size-limit": [
{
"limit": "7 KB",
"path": "./dist/shareon.min.css"
},
{
"limit": "1 KB",
"path": "./dist/shareon.es.js"
}
],
"publishConfig": {
"directory": "package"
},
"clean-publish": {
"withoutPublish": true,
"tempDir": "package"
}
}