npm version scripts

This commit is contained in:
Thomas Rupprecht 2022-12-24 11:36:37 +01:00
parent 863315d77c
commit dc89ef43b5
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "/usr/space",
"version": "0.7",
"version": "0.7.0",
"description": "WebExtension for the Hacker-/Maker-Space /usr/space",
"icons": {
"48": "icons/favicon.svg",

View File

@ -8,6 +8,13 @@
"devDependencies": {
"web-ext-types": "^3.2.1"
},
"scripts": {
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' manifest.json",
"test": "echo \"Error: no test specified\" && exit 0",
"preversion": "npm test",
"version": "npm run copy-version && git add -u",
"postversion": "web-ext build"
},
"repository": {
"type": "git",
"url": "https://gitea.usrspace.at/XimeX/usrspace-browser-addon"