bump version number

This commit is contained in:
Ell 2022-03-22 13:36:51 +01:00
parent 5bc2504a64
commit e91cfc16ae
6 changed files with 6 additions and 20 deletions

1
.npmrc
View file

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

View file

@ -1,8 +1,8 @@
{
"id": "obsidian-custom-frames",
"name": "Custom Frames",
"version": "1.1.1",
"minAppVersion": "0.13.33",
"version": "2.0.0",
"minAppVersion": "0.14.3",
"description": "A plugin that allows adding iframes with custom styling as editor tabs. Also comes with presets for Google Keep and more.",
"author": "Ellpeck",
"authorUrl": "https://ellpeck.de",

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "obsidian-custom-frames",
"version": "1.1.1",
"version": "2.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-custom-frames",
"version": "1.1.1",
"version": "2.0.0",
"description": "An Obsidian plugin that allows adding iframes with custom styling as editor tabs. Also comes with presets for Google Keep and more.",
"main": "main.js",
"scripts": {

View file

@ -1,14 +0,0 @@
import { readFileSync, writeFileSync } from "fs";
const targetVersion = process.env.npm_package_version;
// read minAppVersion from manifest.json and bump version to target version
let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
const { minAppVersion } = manifest;
manifest.version = targetVersion;
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
// update versions.json with target version and minAppVersion from manifest.json
let versions = JSON.parse(readFileSync("versions.json", "utf8"));
versions[targetVersion] = minAppVersion;
writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));

View file

@ -3,5 +3,6 @@
"1.0.1": "0.13.33",
"1.0.2": "0.13.33",
"1.1.0": "0.13.33",
"1.1.1": "0.13.33"
"1.1.1": "0.13.33",
"2.0.0": "0.14.3"
}