feat: add package-lock.json for claude-code

Introduced a new `package-lock.json` for the `claude-code` project. This ensures consistent dependency management and locks all required versions for reproducible builds.
This commit is contained in:
Harald Hoyer 2025-05-02 11:16:19 +02:00
parent 1d9f500d52
commit a4d34ea7d1
4 changed files with 674 additions and 1 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nodePackages.npm nix-update
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"