From aff381309285a95611b6c34ff574d517653307c9 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Wed, 3 Apr 2024 22:51:09 +0300 Subject: [PATCH] fix: add compat with zx v8 --- package.json | 2 +- release.mjs | 3 +++ yarn.lock | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cb37f28..e4fd313 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,6 @@ }, "homepage": "https://github.com/semrel-extra/zx-semrel#readme", "dependencies": { - "zx": "^7.2.3" + "zx": "^7.2.3 || 8" } } diff --git a/release.mjs b/release.mjs index a0e8865..0e46a2f 100755 --- a/release.mjs +++ b/release.mjs @@ -1,5 +1,8 @@ // Replaces semantic-release with zx script +import process from 'node:process' + (async () => { + $.quiet = !process.env.VERBOSE $.verbose = !!process.env.VERBOSE $.noquote = async (...args) => { const q = $.quote; $.quote = v => v; const p = $(...args); p; $.quote = q; return p } diff --git a/yarn.lock b/yarn.lock index b922bc1..96e51b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -366,7 +366,7 @@ yaml@^2.2.2: resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.4.1.tgz#2e57e0b5e995292c25c75d2658f0664765210eed" integrity sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg== -zx@^7.2.3: +"zx@^7.2.3 || 8": version "7.2.3" resolved "https://registry.yarnpkg.com/zx/-/zx-7.2.3.tgz#d9fef6bd084f7e21994080de09fb20e441074c39" integrity sha512-QODu38nLlYXg/B/Gw7ZKiZrvPkEsjPN3LQ5JFXM7h0JvwhEdPNNl+4Ao1y4+o3CLNiDUNcwzQYZ4/Ko7kKzCMA==