Compare commits

...
5 changed files with 34 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Ignore package-lock files
+1
View File
@@ -1,6 +1,7 @@
out
dist
node_modules
package-lock.json
tmp
.vscode-test/
*.vsix
+25
View File
@@ -15,3 +15,28 @@ npm run format || {
}
echo "✅ All checks passed!"
# Exclude package-lock files
echo "Excluding Package-lock Files"
# Define the list of package-lock files to check and potentially unstage
PACKAGE_LOCK_FILES=(
"package-lock.json"
"webview-ui/package-lock.json"
)
# Loop through each file path
for file_path in "${PACKAGE_LOCK_FILES[@]}"; do
# Check if the file is currently staged using git diff and grep
# The -q flag makes grep quiet (no output), it just sets the exit status
# The ^...$ ensures we match the exact filename
if git diff --name-only --cached | grep -q "^${file_path}$"; then
# If the file was found in the staged changes, unstage it
# The '&&' ensures the echo only happens if 'git restore' succeeds
git restore --staged "$file_path" && echo "Removed $file_path from commit"
fi
# No '|| true' needed here; the 'if' statement handles the case where
# the file isn't staged, and the loop simply continues.
done
echo "Finished checking package-lock files."
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "claude-dev",
"version": "3.8.0",
"version": "3.8.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-dev",
"version": "3.8.0",
"version": "3.8.3",
"license": "Apache-2.0",
"dependencies": {
"@anthropic-ai/bedrock-sdk": "^0.12.4",
+1
View File
@@ -8,6 +8,7 @@ pnpm-debug.log*
lerna-debug.log*
node_modules
package-lock.json
dist
dist-ssr
build