The change
scripts/check-install.sh NEW ยท ~30 LOC bash
- 'set -euo pipefail'
- Resolve PROJECT_ROOT relative to script
- If node_modules/ missing:
ยท print actionable error to stderr
ยท point at git-worktree as the common cause
ยท suggest 'npm install' fix
ยท exit 1
- Otherwise: exit 0 silent
package.json
prebuild:
- "echo '๐จ Building plugins from source...' && bash scripts/sync-shared-scripts.sh"
+ "bash scripts/check-install.sh && echo '๐จ Building plugins from source...' && bash scripts/sync-shared-scripts.sh"
tests/build/test-check-install.sh NEW ยท 2 cases
- missing node_modules โ exit 1 + actionable stderr
- present node_modules โ exit 0 silent