Code cleanup

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar
2023-09-17 14:13:52 +03:00
parent ba0d5ef477
commit 06bb905c8d
3 changed files with 29 additions and 18 deletions

View File

@@ -24,22 +24,6 @@ try {
// join the parts back together
const newVersion = `v${versionParts.join('.')}`;
// Parse XML to JS Obj
xml2js.parseString(data, function (err, result) {
if (err) {
return console.log(err);
}
// Convert JS obj to JSON
const json = JSON.stringify(result, null, 2);
// Write JSON to file
fs.writeFile('./project.json', json, 'utf8', function (err) {
if (err) {
return console.log(err);
}
console.log('Created project.json from project.csproj');
});
});
console.log(`Old version: ${version}. New version: ${newVersion}`)