Mercurial > obsidian-remember-file-state
comparison version-bump.mjs @ 45:712761e7625b 1.1.0
Bump version to 1.1.0
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 20 Sep 2023 23:13:19 -0700 |
parents | 2a9e941c96ee |
children |
comparison
equal
deleted
inserted
replaced
44:fae202d7b3de | 45:712761e7625b |
---|---|
1 import { readFileSync, writeFileSync } from "fs"; | 1 import { readFileSync, writeFileSync } from "fs"; |
2 | 2 |
3 const targetVersion = process.env.npm_package_version; | 3 const targetVersion = process.env.npm_package_version; |
4 console.log(`Bumping version to ${targetVersion}`); | |
4 | 5 |
5 // read minAppVersion from manifest.json and bump version to target version | 6 // read minAppVersion from manifest.json and bump version to target version |
6 let manifest = JSON.parse(readFileSync("manifest.json", "utf8")); | 7 let manifest = JSON.parse(readFileSync("manifest.json", "utf8")); |
7 const { minAppVersion } = manifest; | 8 const { minAppVersion } = manifest; |
8 manifest.version = targetVersion; | 9 manifest.version = targetVersion; |