diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b973752 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +tag-version-prefix="" \ No newline at end of file diff --git a/package.json b/package.json index 67edd6c..1271d9c 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/versions.json b/versions.json index ba14785..e303bca 100644 --- a/versions.json +++ b/versions.json @@ -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" }