From 3e7ee2703a105dce4437018a1a928c32446708fc Mon Sep 17 00:00:00 2001
From: ezsh <ezsh.junk@gmail.com>
Date: Mon, 18 May 2020 16:12:32 +0200
Subject: [PATCH] Handle the js subdir for Twine JS generation

---
 devTools/makeTwineJSPassage.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devTools/makeTwineJSPassage.sh b/devTools/makeTwineJSPassage.sh
index e68e1445035..9b4c4b85261 100755
--- a/devTools/makeTwineJSPassage.sh
+++ b/devTools/makeTwineJSPassage.sh
@@ -6,7 +6,7 @@
 # $1: root repo dir
 # $2: output file name
 collectJSForTwine() {
-	local files=$(find . -path ./art/assistantArt.js -prune -o -name '*.js' -print)
+	local files=$(find js src/js -path ./art/assistantArt.js -prune -o -name '*.js' -print)
 	files=$(echo "$files" | sort)
 	echo "" > "$2"
 	for f in $files; do
@@ -16,5 +16,5 @@ collectJSForTwine() {
 }
 
 ROOT_REPO_DIR="$(git rev-parse --show-toplevel)"
-cd "${ROOT_REPO_DIR}"/src
+cd "${ROOT_REPO_DIR}"
 collectJSForTwine "${ROOT_REPO_DIR}" "${ROOT_REPO_DIR}/devNotes/twine JS.txt"
-- 
GitLab