redocly-cli: silence update messages

This commit is contained in:
Simon Žlender 2023-12-22 21:08:51 +01:00
parent 66bda599f4
commit 5cdbbaa029

View File

@ -31,7 +31,10 @@ buildNpmPackage rec {
cp -R packages/core $out/lib/node_modules/@redocly/cli/node_modules/@redocly/openapi-core
mkdir $out/bin
makeWrapper $out/lib/node_modules/@redocly/cli/node_modules/@redocly/cli/bin/cli.js $out/bin/redocly-cli --set REDOCLY_TELEMETRY off
makeWrapper $out/lib/node_modules/@redocly/cli/node_modules/@redocly/cli/bin/cli.js \
$out/bin/redocly-cli \
--set-default REDOCLY_TELEMETRY off \
--set-default CI true # Silence update messages
'';
installCheckPhase = ''