File tree Expand file tree Collapse file tree 3 files changed +1095
-945
lines changed
Expand file tree Collapse file tree 3 files changed +1095
-945
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,14 @@ function lint() {
6969# # deps - updates project dependencies to latest
7070function deps() {
7171 npm update --save
72+ # When we run this on a cloudtop, the urls in package-lock.json are replaced
73+ # with an internal server. We need to manually update package-lock.json
74+ # to set them back to https://registry.npmjs.org/
75+ if [[ " $OSTYPE " == " darwin" * ]]; then
76+ sed -i ' ' " s|https://us-npm.pkg.dev/artifact-foundry-prod/ah-3p-staging-npm/|https://registry.npmjs.org/|g" package-lock.json
77+ else
78+ sed -i " s|https://us-npm.pkg.dev/artifact-foundry-prod/ah-3p-staging-npm/|https://registry.npmjs.org/|g" package-lock.json
79+ fi
7280}
7381
7482# write_e2e_env - Loads secrets from the gcloud project and writes
You can’t perform that action at this time.
0 commit comments