Skip to content

build: cronjob cannot install angular snapshot builds #14332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/install-angular-snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ set -e
# Go to the project root directory
cd $(dirname $0)/../

yarn add \
$(awk 'match($0, "@angular/(.*)\":", m){print "github:angular/"m[1]"-builds"}' package.json)
# Searches for all Angular dependencies in the "package.json" and computes the URL to the github
# snapshot builds for each Angular package. Afterwards it runs `yarn add --force {urls}` in order
# to install the snapshot builds for each package. Note that we need to use `--force` because
# otherwise Yarn will error due to already specified dependencies.
egrep -o '@angular/[^"]+' ./package.json | sed 's/@/github:/' | sed 's/.*/&-builds/' |
xargs yarn add --force