git-ward 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/src/git.rs +3 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/src/git.rs
CHANGED
|
@@ -14,6 +14,9 @@ else
|
|
|
14
14
|
# Fallback to local npx if global command not found
|
|
15
15
|
if [ -f "node_modules/.bin/ward" ]; then
|
|
16
16
|
./node_modules/.bin/ward scan
|
|
17
|
+
# Check if npx is available and try running via npx
|
|
18
|
+
elif command -v npx >/dev/null 2>&1; then
|
|
19
|
+
npx -y git-ward scan
|
|
17
20
|
else
|
|
18
21
|
echo "Ward not found in path or node_modules. Skipping scan."
|
|
19
22
|
fi
|