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!');
|
throw new Error('No match found!');
|
||||||
}
|
}
|
||||||
data.version = version;
|
data.version = version;
|
||||||
const numSpaces = name.endsWith('package-lock.json') ? 2 : 4;
|
const newContent = JSON.stringify(data, null, 2) + '\n';
|
||||||
const newContent = JSON.stringify(data, null, numSpaces) + '\n';
|
|
||||||
fs.writeFileSync(name, newContent, 'utf8');
|
fs.writeFileSync(name, newContent, 'utf8');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue