https://github.com/angular/angular
Raw File
Tip revision: eda27c9a8763e24e88177eb2e2350149f59dbe33 authored by Andrew Scott on 07 April 2021, 18:40:31 UTC
release: cut the v12.0.0-next.8 release (#41493)
Tip revision: eda27c9
debug-test.sh
#!/usr/bin/env bash

##### Test Debug Utility #####
##############################

# Use this script to run the ngcc integration test locally
# in isolation from the other integration tests.
# This is useful when debugging the ngcc code-base.

set -u -e -o pipefail

cd "$(dirname "$0")"

node $(pwd)/../../scripts/build/build-packages-dist.js

# 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
back to top