Files
react/compiler/forget/scripts/hash-dist.sh
T
Jan Kassens e575e22925 Add hash of Babel plugin to Jest transform
Jest caches based on the hash of the babel config. This caused us to not break 
that cache when the we made changes to the plugin. 

Fixes #643
2022-10-06 16:59:12 -04:00

7 lines
192 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
# Hashes JS files in the dist directory to create a cache-breaker
find dist -name '*.js' | sort | xargs shasum | shasum | awk '{ print $1 }' > dist/HASH