mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Improve release script logging
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
905d798eab
commit
2a9a1b43c1
1
.github/workflows/daily-alpha.yml
vendored
1
.github/workflows/daily-alpha.yml
vendored
@ -25,7 +25,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Create PR
|
- name: Create PR
|
||||||
run: |
|
run: |
|
||||||
git fetch
|
|
||||||
npm run create-release-pr
|
npm run create-release-pr
|
||||||
env:
|
env:
|
||||||
BUMP_PACKAGE_ARGS: -- --conventional-commits --conventional-prerelease --yes
|
BUMP_PACKAGE_ARGS: -- --conventional-commits --conventional-prerelease --yes
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import child_process, { spawn } from "child_process";
|
import child_process, { ExecFileOptions, spawn as _spawn } from "child_process";
|
||||||
import { readFile } from "fs/promises";
|
import { readFile } from "fs/promises";
|
||||||
import inquirer from "inquirer";
|
import inquirer from "inquirer";
|
||||||
import { createInterface, ReadLine } from "readline";
|
import { createInterface, ReadLine } from "readline";
|
||||||
@ -15,8 +15,26 @@ import { promisify } from "util";
|
|||||||
type SemVer = semver.SemVer;
|
type SemVer = semver.SemVer;
|
||||||
|
|
||||||
const { SemVer } = semver;
|
const { SemVer } = semver;
|
||||||
const exec = promisify(child_process.exec);
|
const _exec = promisify(child_process.exec);
|
||||||
const execFile = promisify(child_process.execFile);
|
const _execFile = promisify(child_process.execFile);
|
||||||
|
|
||||||
|
const exec = ((cmd, ...args) => {
|
||||||
|
console.log("EXEC", cmd);
|
||||||
|
|
||||||
|
return _exec(cmd, ...args as any[]);
|
||||||
|
}) as typeof _exec;
|
||||||
|
|
||||||
|
const execFile = (file: string, args: string[], opts?: ExecFileOptions) => {
|
||||||
|
console.log("EXEC", file, args);
|
||||||
|
|
||||||
|
return _execFile(file, args, opts);
|
||||||
|
};
|
||||||
|
|
||||||
|
const spawn = ((file, ...args) => {
|
||||||
|
console.log("SPAWN", file);
|
||||||
|
|
||||||
|
return _spawn(file, ...args as any[]);
|
||||||
|
}) as typeof _spawn;
|
||||||
|
|
||||||
async function pipeExecFile(file: string, args: string[], opts?: { stdin: string }) {
|
async function pipeExecFile(file: string, args: string[], opts?: { stdin: string }) {
|
||||||
const p = execFile(file, args);
|
const p = execFile(file, args);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user