Merge pull request #276130 from szlend/redocly-cli-silence-updates

redocly-cli: silence update messages
This commit is contained in:
kirillrdy 2024-01-21 21:11:06 +09:00 committed by GitHub
commit d33fc5d7ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 = ''