mirror of
https://github.com/prncc/obsidian-repeat-plugin.git
synced 2026-07-22 06:50:25 +00:00
Update version in package.json and use spaces instead of tabs
This commit is contained in:
parent
97926708f8
commit
eb798c9a0b
1 changed files with 7 additions and 2 deletions
|
|
@ -6,9 +6,14 @@ const targetVersion = process.env.npm_package_version;
|
|||
let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
|
||||
const { minAppVersion } = manifest;
|
||||
manifest.version = targetVersion;
|
||||
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
|
||||
writeFileSync("manifest.json", JSON.stringify(manifest, null, " ") + "\n");
|
||||
|
||||
// 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"));
|
||||
writeFileSync("versions.json", JSON.stringify(versions, null, " ") + "\n");
|
||||
|
||||
// update package.json
|
||||
let packageJson = JSON.parse(readFileSync("package.json", "utf8"));
|
||||
packageJson.version = targetVersion;
|
||||
writeFileSync("package.json", JSON.stringify(packageJson, null, " ") + "\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue