babel/packages/babel-compat-data/scripts/download-compat-table.sh
Huáng Jùnliàng f731522125
chore: update compat-data (#13949)
* chore: update compat-data

* update compat-data sources

* fix: exclude deno from compat-data

* update test fixtures

* update Babel 8 test fixtures
2021-11-10 15:39:34 -05:00

21 lines
511 B
Bash
Executable File

#!/bin/bash
set -e
COMPAT_TABLE_COMMIT=bddf2b204ffc959f738355517257f6f389b12584
GIT_HEAD=build/compat-table/.git/HEAD
if [ -d "build/compat-table" ]; then
cd build/compat-table
commit="$(git rev-parse HEAD)"
cd ../..
if [ $commit == $COMPAT_TABLE_COMMIT ]; then
exit 0
fi
fi
rm -rf build/compat-table
mkdir -p build
git clone --single-branch --shallow-since=2020-04-01 https://github.com/kangax/compat-table.git build/compat-table
cd build/compat-table && git checkout -q $COMPAT_TABLE_COMMIT