chore: update package meta & scripts

This commit is contained in:
Ayo 2023-11-19 18:38:41 +01:00
parent dfd19a7484
commit 3e79455ccb

View file

@ -6,7 +6,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "npx simple-server .", "start": "npx simple-server .",
"build": "npm run generate:types && npm run copy:meta && npm run copy:source && npm run minify", "build": "npm run clean&& npm run generate:types && npm run copy:meta && npm run copy:source && npm run minify",
"clean": "rm -rf dist", "clean": "rm -rf dist",
"minify": "npx uglifyjs ./dist/WebComponent.js -o ./dist/WebComponent.min.js", "minify": "npx uglifyjs ./dist/WebComponent.js -o ./dist/WebComponent.min.js",
"generate:types": "tsc --allowJs src/* --outDir dist --declaration --emitDeclarationOnly", "generate:types": "tsc --allowJs src/* --outDir dist --declaration --emitDeclarationOnly",
@ -15,12 +15,10 @@
"publish": "npm run clean && npm run build && cd ./dist && npm publish --access public", "publish": "npm run clean && npm run build && cd ./dist && npm publish --access public",
"publish:patch": "npm version patch && npm run publish", "publish:patch": "npm version patch && npm run publish",
"publish:minor": "npm version minor && npm run publish", "publish:minor": "npm version minor && npm run publish",
"check:size": "npm run build && size-limit ./dist" "check:size": "npm run build && size-limit ./dist/WebComponent.min.js"
}, },
"repository": { "repository": "https://git.sr.ht/~ayoayco/web-component-base",
"url": "https://github.com/ayoayco/web-component-base" "homepage": "https://git.sr.ht/~ayoayco/web-component-base#readme",
},
"homepage": "https://github.com/ayoayco/web-component-base#readme",
"keywords": [ "keywords": [
"web components", "web components",
"web component", "web component",