add version bump script

This commit is contained in:
AidenLx 2021-06-05 21:38:26 +08:00 committed by aidenlx
parent 4f502e92eb
commit 496c6c1c9c
3 changed files with 7 additions and 4 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
tag-version-prefix=""

View File

@ -1,11 +1,12 @@
{
"name": "obsidian-sample-plugin",
"version": "0.12.0",
"version": "1.0.1",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production"
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "json -I -f manifest.json -e \"this.version='$npm_package_version'\" && json -I -f versions.json -e \"this['$npm_package_version']='$(cat manifest.json | json minAppVersion)'\" && git add ."
},
"keywords": [],
"author": "",
@ -16,6 +17,7 @@
"@typescript-eslint/parser": "^5.2.0",
"builtin-modules": "^3.2.0",
"esbuild": "0.13.12",
"json": "^11.0.0",
"obsidian": "^0.12.17",
"tslib": "2.3.1",
"typescript": "4.4.4"

View File

@ -1,4 +1,4 @@
{
"1.0.1": "0.9.12",
"1.0.0": "0.9.7"
"1.0.0": "0.9.7",
"1.0.1": "0.9.12"
}