mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
22 lines
No EOL
423 B
Bash
Executable file
22 lines
No EOL
423 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -u -e -o pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
$(pwd)/../../scripts/build-packages-dist.sh
|
|
|
|
# Workaround https://github.com/yarnpkg/yarn/issues/2165
|
|
# Yarn will cache file://dist URIs and not update Angular code
|
|
readonly cache=../.yarn_local_cache
|
|
function rm_cache {
|
|
rm -rf $cache
|
|
}
|
|
rm_cache
|
|
mkdir $cache
|
|
trap rm_cache EXIT
|
|
|
|
rm -rf dist
|
|
rm -rf node_modules
|
|
yarn install --cache-folder $cache
|
|
yarn test |