diff --git a/run_demo.sh b/run_demo.sh index 034e9a3..8e53ed5 100755 --- a/run_demo.sh +++ b/run_demo.sh @@ -154,7 +154,7 @@ for src_dir in "$@"; do # Node packages: we keep a single package, the last one found # shellcheck disable=SC2044 for pkg_json in $(find "$src_dir" -mindepth 1 -maxdepth 1 -type f -name 'package.json'); do - node_pkg_name=$(jq -r '.name' < "${pkg_json}") + node_pkg_name="$(basename "$(dirname "${pkg_json}")")" done done