Created
December 7, 2018 09:53
-
-
Save benjie/0f881226d40b9a0f414e03d2e379dfc3 to your computer and use it in GitHub Desktop.
Updates the `latest` dist-tag on a package so that package@latest points to the same version as package@next
This file contains 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 | |
echo "Enter OTP code:" | |
read otp | |
export NPM_CONFIG_OTP=$otp | |
function next2latest { | |
V=$(npm info $1 dist-tags.next | xargs) | |
npm dist-tags add $1@$V latest | |
} | |
next2latest graphql-parse-resolve-info | |
next2latest graphile-build | |
next2latest graphile-build-pg | |
next2latest postgraphile-core | |
next2latest graphile-utils | |
next2latest postgraphile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment