Skip to content

Commit 243ef35

Browse files
committed
change to git repo root first
1 parent 68ca605 commit 243ef35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

script/commit-definitions

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
#
77
# Notes: extracted from https://github.com/nodenv/node-build-update-defs/blob/ac8e155cd8df843ca224c45ef55a36e20719bf9d/script/submit-definitions
88

9+
# change to repo-root;
10+
# allows the script to be invoked via `npm explore -- npm run defs:commit`
11+
# however, it will fail if this package is installed as a git-dep
12+
cd "$(git rev-parse --show-toplevel)" || exit
13+
914
git ls-files --others --exclude-standard -- share/node-build |
1015
while read -r node_def; do
1116
node_name=${node_def##*/}

0 commit comments

Comments
 (0)