Skip to content

Instantly share code, notes, and snippets.

@paddy74
Created June 30, 2025 18:17
Show Gist options
  • Save paddy74/b1b918dee2bb98c2e9cb92bd57ebbc38 to your computer and use it in GitHub Desktop.
Save paddy74/b1b918dee2bb98c2e9cb92bd57ebbc38 to your computer and use it in GitHub Desktop.
Dry dependency update with pnpm
#!/bin/bash
# 1. Ensure dependencies are installed and lockfile is consistent before dry run
# 2. Simulate dependency updates
# 3. Check for known security vulnerabilities
# 4. Simulate deduplication
set -euo pipefail
pnpm install --frozen-lockfile
printf '%s\n' "Simulating dependency updates..."
pnpm update --latest --dry-run
printf '%s\n' "Checking for known security vulnerabilities..."
pnpm audit
printf '%s\n' "Simulatring deduplication..."
pnpm dedupe --dry-run
printf '%s\n' "Dry run complete. No changes were made."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment