diff options
author | Nathan Fritz <fritzy@github.com> | 2022-10-12 22:31:09 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-10-12 23:29:37 +0300 |
commit | 877829e3739f1bf7eb39c38fefd27f9980c55f52 (patch) | |
tree | 04f395543b056ae2032da23d39a6a176035f8c65 | |
parent | 6c5c2a88dd52cbd3777ea7269dc02307a6751f6d (diff) |
chore: scripts/resetdeps.sh checks for cmark-gfm bindings
-rwxr-xr-x | scripts/resetdeps.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/resetdeps.sh b/scripts/resetdeps.sh index 758edef64..acf900d67 100755 --- a/scripts/resetdeps.sh +++ b/scripts/resetdeps.sh @@ -9,3 +9,9 @@ git checkout node_modules node . i --ignore-scripts --no-audit --no-fund "$@" node . rebuild --ignore-scripts node . run dependencies --ignore-scripts +# check for cmark-gfm bindings +cmarkbinding=$(find `npm ls cmark-gfm --parseable \ +| head -n 1` -name binding.node) +if [[ ! $cmarkbinding ]]; then + node . rebuild cmark-gfm +fi |