mirror of
https://github.com/band/obsidian-folder-filelist.git
synced 2026-07-22 05:49:10 +00:00
trying to synchronize the versions and files
This commit is contained in:
parent
67ab282467
commit
517eefa28b
3 changed files with 16 additions and 1 deletions
1
.npmrc
Normal file
1
.npmrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
tag-version-prefix=""
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "folder-filelist",
|
"id": "folder-filelist",
|
||||||
"name": "Folder Filelist",
|
"name": "Folder Filelist",
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"minAppVersion": "1.8.0",
|
"minAppVersion": "0.15.0",
|
||||||
"description": "Create and maintain a list of wikilinks to files in specified folders",
|
"description": "Create and maintain a list of wikilinks to files in specified folders",
|
||||||
"author": "band",
|
"author": "band",
|
||||||
"authorUrl": "https://github.com/band",
|
"authorUrl": "https://github.com/band",
|
||||||
|
|
|
||||||
14
version-bump.mjs
Normal file
14
version-bump.mjs
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
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"));
|
||||||
Loading…
Reference in a new issue