https://github.com/angular/angular
Raw File
Tip revision: 01efb1b8073ff4a2313f5718bbbc45ecedc2510f authored by Jessica Janiuk on 09 November 2023, 20:05:59 UTC
release: cut the v17.0.2 release
Tip revision: 01efb1b
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")"

# Go to the project directory and build the release packages.
(cd $(pwd)/../../ && yarn build)

# 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