Переглянути джерело

chore(release): drop the unused synchronous runner

imccyu 1 тиждень тому
батько
коміт
b342b09401
1 змінених файлів з 0 додано та 13 видалено
  1. 0 13
      scripts/release/process.ts

+ 0 - 13
scripts/release/process.ts

@@ -70,19 +70,6 @@ export function capture(command: string, args: readonly string[], options: RunOp
   return result.stdout.trim()
 }
 
-/**
- * Run a command with inherited streams, so its progress reaches the log, and
- * fail on a non-zero exit.
- * @param command - executable name.
- * @param args - command arguments.
- * @param options - working directory and environment.
- */
-export function run(command: string, args: readonly string[], options: RunOptions = {}): void {
-  const result = spawnSync(command, [...args], { cwd: options.cwd, env: options.env, stdio: 'inherit' })
-  if (result.error !== undefined) throw result.error
-  if (result.status !== 0) throw new Error(`${command} ${args.join(' ')} exited with ${String(result.status)}`)
-}
-
 /**
  * Run a command with inherited streams without blocking the event loop, so a
  * caller can hold several commands in flight, and fail on a non-zero exit.