mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
e575e22925
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
7 lines
192 B
Bash
Executable File
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
|