Skip to content

Instantly share code, notes, and snippets.

@mcasimir
Created November 21, 2019 20:51
Show Gist options
  • Save mcasimir/7dc0e2cb118775425e72c88bac089038 to your computer and use it in GitHub Desktop.
Save mcasimir/7dc0e2cb118775425e72c88bac089038 to your computer and use it in GitHub Desktop.
install-peer-dependencies.sh
#!/usr/bin/env bash
cat package.json | jq -r '.peerDependencies | keys[] as $k | "\($k)@\(.[$k])"' | xargs npm install --no-save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment