Added missing process.

This commit is contained in:
SamTV12345 2024-03-17 12:09:56 +01:00
parent 77c2b8c8cc
commit 4bcc8b38c8

View file

@ -52,11 +52,6 @@ const runc =
const run = (cmd: string, opts = {}) => childProcess.execSync(cmd, {stdio: 'inherit', ...opts}); 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 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:{ const assertWorkDirClean = (opts:{
cwd?: string; cwd?: string;