From 4bcc8b38c87c7bf9a56402ab909058885c444d90 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sun, 17 Mar 2024 12:09:56 +0100 Subject: [PATCH] Added missing process. --- bin/release.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bin/release.ts b/bin/release.ts index 33bd9400..24c5a7d8 100644 --- a/bin/release.ts +++ b/bin/release.ts @@ -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;