diff --git a/docs/generated/packages/js/executors/verdaccio.json b/docs/generated/packages/js/executors/verdaccio.json index ad707dfaf3a68..5e53e945ca8f4 100644 --- a/docs/generated/packages/js/executors/verdaccio.json +++ b/docs/generated/packages/js/executors/verdaccio.json @@ -23,6 +23,10 @@ "type": "number", "description": "Port of local registry that Verdaccio should listen to" }, + "listenAddress": { + "type": "string", + "description": "Listen address that Verdaccio should listen to" + }, "config": { "type": "string", "description": "Path to the custom Verdaccio config file" diff --git a/packages/js/src/executors/verdaccio/verdaccio.impl.ts b/packages/js/src/executors/verdaccio/verdaccio.impl.ts index 107aa6ac891c0..8aa77bb5db2c9 100644 --- a/packages/js/src/executors/verdaccio/verdaccio.impl.ts +++ b/packages/js/src/executors/verdaccio/verdaccio.impl.ts @@ -126,7 +126,9 @@ function createVerdaccioOptions( options.port ??= 4873; // set default port if config is not provided } if (options.port) { - const listenAddress = options.listenAddress ? `${options.listenAddress}:${options.port.toString()}` : options.port.toString(); + const listenAddress = options.listenAddress + ? `${options.listenAddress}:${options.port.toString()}` + : options.port.toString(); verdaccioArgs.push('--listen', listenAddress); } return verdaccioArgs;