.npmrc 1.4 KB

1234567891011121314151617181920212223242526
  1. # Rush uses this file to configure the NPM package registry during installation. It is applicable
  2. # to PNPM, NPM, and Yarn package managers. It is used by operations such as "rush install",
  3. # "rush update", and the "install-run.js" scripts.
  4. #
  5. # NOTE: The "rush publish" command uses .npmrc-publish instead.
  6. #
  7. # Before invoking the package manager, Rush will generate an .npmrc in the folder where installation
  8. # is performed. This generated file will omit any config lines that reference environment variables
  9. # that are undefined in that session; this avoids problems that would otherwise result due to
  10. # a missing variable being replaced by an empty string.
  11. #
  12. # If "subspacesEnabled" is true in subspaces.json, the generated file will merge settings from
  13. # "common/config/rush/.npmrc" and "common/config/subspaces/<name>/.npmrc", with the latter taking
  14. # precedence.
  15. #
  16. # * * * SECURITY WARNING * * *
  17. #
  18. # It is NOT recommended to store authentication tokens in a text file on a lab machine, because
  19. # other unrelated processes may be able to read that file. Also, the file may persist indefinitely,
  20. # for example if the machine loses power. A safer practice is to pass the token via an
  21. # environment variable, which can be referenced from .npmrc using ${} expansion. For example:
  22. #
  23. # //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
  24. #
  25. registry=https://registry.npmjs.org/
  26. always-auth=false