mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Added missing process.
This commit is contained in:
parent
77c2b8c8cc
commit
4bcc8b38c8
1 changed files with 0 additions and 5 deletions
|
@ -52,11 +52,6 @@ const runc =
|
|||
const run = (cmd: string, opts = {}) => childProcess.execSync(cmd, {stdio: 'inherit', ...opts});
|
||||
|
||||
const readJson = (filename: string) => JSON.parse(fs.readFileSync(filename, {encoding: 'utf8', flag: 'r'}));
|
||||
const writeJson = (filename: string, obj:object) => {
|
||||
let json = JSON.stringify(obj, null, 2);
|
||||
if (json !== '' && !json.endsWith('\n')) json += '\n';
|
||||
fs.writeFileSync(filename, json);
|
||||
};
|
||||
|
||||
const assertWorkDirClean = (opts:{
|
||||
cwd?: string;
|
||||
|
|
Loading…
Reference in a new issue