claude-code: update vscode-extensions.anthropic.claude-code with claude-code
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user