We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e959a6 + dc0cfb1 commit e65994aCopy full SHA for e65994a
app.ts
@@ -91,7 +91,13 @@ async function load() {
91
if (process.argv.indexOf("-syncVer")) {
92
let json = JSON.parse(FileClass.readFrom("./package.json")!);
93
json["version"] = Version.version.join(".");
94
- FileClass.writeTo("./package.json", JSON.stringify(json, null, 2));
+ let str = JSON.stringify(json, null, 2);
95
+ if (FileClass.writeTo("./package.json", str)) {
96
+ MainLogger.warn(`package.json version changed to ${json["version"]}`);
97
+ } else {
98
+ MainLogger.error(`Change package.json Version Fail!`);
99
+ }
100
+ MainLogger.warn(str);
101
return;
102
}
103
if (FileClass.exists("./NO_COLOR")) {
0 commit comments