claude-code: update vscode-extensions.anthropic.claude-code with claude-code

This commit is contained in:
ZHAO Jin-Xiang
2025-09-29 17:05:39 +08:00
parent 608284157b
commit 251fcb2356
+3 -8
View File
@@ -1,15 +1,10 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nodePackages.npm nix-update
#!nix-shell --pure -i bash --packages nodejs nix-update git
set -euo pipefail
version=$(npm view @anthropic-ai/claude-code version)
# Generate updated lock file
cd "$(dirname "${BASH_SOURCE[0]}")"
npm i --package-lock-only @anthropic-ai/claude-code@"$version"
rm -f package.json
# Update version and hashes
cd -
nix-update claude-code --version "$version"
AUTHORIZED=1 NIXPKGS_ALLOW_UNFREE=1 nix-update claude-code --version="$version" --generate-lockfile
nix-update vscode-extensions.anthropic.claude-code --use-update-script --version "$version"