kibana/packages/elastic-safer-lodash-set/scripts/save_state.sh
Aleh Zasypkin 2764abe4e8
[7.x] Add @elastic/safer-lodash-set as an alternative to lodash.set (#71823)
# Conflicts:
#	yarn.lock

Co-authored-by: Thomas Watson <w@tson.dk>
2020-07-15 12:18:47 +02:00

18 lines
467 B
Bash
Executable file

#!/usr/bin/env bash
# Elasticsearch B.V licenses this file to you under the MIT License.
# See `packages/elastic-safer-lodash-set/LICENSE` for more information.
set -e
source ./scripts/_get_lodash.sh
modified_lodash_files=(_baseSet.js)
# Create fresh patch files for each of the modified files
for file in "${modified_lodash_files[@]}"
do
diff ".tmp/node_modules/lodash/$file" "lodash/$file" > "scripts/patches/$file.patch" || true
done
echo "State updated!"