Merge branch 'main' into refactor/task-01-scaffold
This commit is contained in:
@@ -56,9 +56,10 @@ else
|
||||
git worktree add "$dir" -b "$branch" "$base"
|
||||
fi
|
||||
|
||||
# npm ci only once task 01 has produced a package.json. Before that there is no
|
||||
# toolchain to install, and no hooks to verify.
|
||||
if [ -f "$dir/package.json" ]; then
|
||||
# npm ci only once task 01 has produced a lockfile. The pre-existing root
|
||||
# package.json carries two scripts and no dependencies, so before task 01 there
|
||||
# is no toolchain to install and no hooks to verify.
|
||||
if [ -f "$dir/package-lock.json" ]; then
|
||||
( cd "$dir" && npm ci --prefer-offline && .agents/scripts/verify-hooks.sh )
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user