… output<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> The `startLocalRegistry()` always assumed that the local registry was started on `localhost` , which is not necessary the case, if for example user has set the `listenAddress` option in the underlying `verdaccio executor` or via the `verdaccio config file`128778e7d1/packages/js/src/executors/verdaccio/verdaccio.impl.ts (L130)As a result the `startLocalregistry()`, will never return as, it is waiting forever to detect the local registry URL in the process output:128778e7d1/packages/js/src/plugins/jest/start-local-registry.ts (L40)This customization of `verdaccio` listen address is something required, namely when running within a **devcontainer**. In that case, the address must be set to `0.0.0.0`, so that the registry can be accessed from `http://localhost:4873` from host machine. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Allow customizing the `listenAddress` when starting the local registry, via an additional option that can be provided when calling the method. It default value will be `localhost`. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes https://github.com/nrwl/nx/issues/28238
{{links}}
Nx: Smart Monorepos · Fast CI
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
This package is a JavaScript/TypeScript plugin for Nx.
{{content}}