diff --git a/common/config/rush/.npmrc b/common/config/rush/.npmrc index 43f783886..7232367b4 100644 --- a/common/config/rush/.npmrc +++ b/common/config/rush/.npmrc @@ -18,16 +18,11 @@ # It is NOT recommended to store authentication tokens in a text file on a lab machine, because # other unrelated processes may be able to read that file. Also, the file may persist indefinitely, # for example if the machine loses power. A safer practice is to pass the token via an -# environment variable, which can be referenced from .npmrc using ${} expansion. For example: -# -# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} -# +# environment variable, which can be referenced from .npmrc using ${} expansion. # Explicitly specify the NPM registry that "rush install" and "rush update" will use by default: -registry=https://registry.npmjs.org/ - -# Optionally provide an authentication token for the above registry URL (if it is a private registry): -# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} +registry=https://packagefeedproxy.microsoft.io/npm/ +omit-lockfile-registry-resolved=true # Change this to "true" if your registry requires authentication for read-only operations: always-auth=false diff --git a/common/config/rush/.npmrc-publish b/common/config/rush/.npmrc-publish index 51acb920e..b87f054da 100644 --- a/common/config/rush/.npmrc-publish +++ b/common/config/rush/.npmrc-publish @@ -14,13 +14,7 @@ # It is NOT recommended to store authentication tokens in a text file on a lab machine, because # other unrelated processes may be able to read the file. Also, the file may persist indefinitely, # for example if the machine loses power. A safer practice is to pass the token via an -# environment variable, which can be referenced from .npmrc using ${} expansion. For example: -# -# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} -# - -# Explicitly specify the NPM registry that "rush publish" will use by default: -registry=https://registry.npmjs.org/ +# environment variable, which can be referenced from .npmrc using ${} expansion. -# Provide an authentication token for the above registry URL: -# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} +always-auth=true +registry=https://packagefeedproxy.microsoft.io/npm/