Created
June 30, 2025 18:17
-
-
Save paddy74/b1b918dee2bb98c2e9cb92bd57ebbc38 to your computer and use it in GitHub Desktop.
Dry dependency update with pnpm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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