Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@github.com>2022-10-12 22:31:09 +0300
committerNathan Fritz <fritzy@github.com>2022-10-12 23:29:37 +0300
commit877829e3739f1bf7eb39c38fefd27f9980c55f52 (patch)
tree04f395543b056ae2032da23d39a6a176035f8c65
parent6c5c2a88dd52cbd3777ea7269dc02307a6751f6d (diff)
chore: scripts/resetdeps.sh checks for cmark-gfm bindings
-rwxr-xr-xscripts/resetdeps.sh6
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