Revision f0b5e830a5f3093459c1c6ee3c8639638dbeebf8 authored by Ryan Day on 28 April 2022, 16:29:31 UTC, committed by Dylan Hunn on 02 May 2022, 20:10:06 UTC
bazelOpts.es5Mode is being removed and replaced with devmode. Adding a
check for either will allow a smooth migration.

PR Close #45804
1 parent 0eee114
Raw File
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
export 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