Skip to content

Instantly share code, notes, and snippets.

@paddy74
Created June 30, 2025 18:17
Show Gist options
  • Select an option

  • Save paddy74/b1b918dee2bb98c2e9cb92bd57ebbc38 to your computer and use it in GitHub Desktop.

Select an option

Save paddy74/b1b918dee2bb98c2e9cb92bd57ebbc38 to your computer and use it in GitHub Desktop.

Revisions

  1. paddy74 created this gist Jun 30, 2025.
    21 changes: 21 additions & 0 deletions dry-update.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/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."