-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support multiple npm registries and tokens via .npmrc (#503)
* feat: support multiple npm registries and tokens via npm_auth * docs: add docstring to _get_npm_auth * refactor: move default registry url to utils.bzl * refactor: make package url available to npm_import * refactor: make get_npm_auth unit testable * test: add get_npm_auth unit tests * fix: readd fallback download_url value to npm_import * chore: add @aspect-build/a npm package from private GitHub registry to e2e/npm_translate_lock_auth * refactor: return npm tokens, registries and scopes in get_npm_auth * fix: build tarball url for custom registries * fix: update npm_repositories.bzl in e2e/rules_foo * fix: add trailing / to npm registry url Co-authored-by: Greg Magolan <[email protected]>
- Loading branch information
1 parent
386610d
commit e1fd004
Showing
12 changed files
with
1,154 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
hoist=false | ||
|
||
# @aspect-build private GitHub registry | ||
@aspect-build:registry=https://npm.pkg.github.com/ | ||
//npm.pkg.github.com/:_authToken=${ASPECT_GH_PACKAGES_AUTH_TOKEN} | ||
|
||
# @aspect-priv-npm private npm registry | ||
@aspect-priv-npm:registry=https://registry.npmjs.org/ | ||
//registry.npmjs.org/:_authToken=${ASPECT_NPM_AUTH_TOKEN} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"private": true, | ||
"dependencies": { | ||
"@aspect-build/a": "1.0.0", | ||
"@aspect-priv-npm/a": "1.0.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.