Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Created March 7, 2018 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonschlinkert/565bdbe51bb0090ea0a34503a874f1b1 to your computer and use it in GitHub Desktop.
Save jonschlinkert/565bdbe51bb0090ea0a34503a874f1b1 to your computer and use it in GitHub Desktop.
From a script in the babel-plugin-syntax-dynamic-import library
#!/bin/sh
set -e
read -p "Username: " username
for f in packages/*; do
package=`basename $f`
if [ -d "$f" ]; then
npm owner add $username $package
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment