trying to synchronize the versions and files

This commit is contained in:
William L. Anderson 2025-04-20 11:36:27 -05:00
parent 67ab282467
commit 517eefa28b
3 changed files with 16 additions and 1 deletions

1
.npmrc Normal file
View file

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

View file

@ -2,7 +2,7 @@
"id": "folder-filelist",
"name": "Folder Filelist",
"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",
"author": "band",
"authorUrl": "https://github.com/band",

14
version-bump.mjs Normal file
View 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"));