mirror of https://github.com/keeweb/keeweb.git
always write version with 2 spaces
This commit is contained in:
parent
cc6839d13e
commit
034e0ec2e3
|
@ -30,7 +30,6 @@ function processFile(name) {
|
|||
throw new Error('No match found!');
|
||||
}
|
||||
data.version = version;
|
||||
const numSpaces = name.endsWith('package-lock.json') ? 2 : 4;
|
||||
const newContent = JSON.stringify(data, null, numSpaces) + '\n';
|
||||
const newContent = JSON.stringify(data, null, 2) + '\n';
|
||||
fs.writeFileSync(name, newContent, 'utf8');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue