We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8bebe0 commit 6349032Copy full SHA for 6349032
scripts/preversion.sh
@@ -1,5 +1,14 @@
1
#!/bin/bash
2
3
+function is_logged_in(){
4
+ ( npm whoami ) >/dev/null 2>&1
5
+}
6
+
7
+if ! is_logged_in; then
8
+ echo "You are not logged into NPM. Publishing will fail, so not continuing. Try \`npm adduser\`"
9
+ exit 1
10
+fi
11
12
for package in $(npm outdated --parseable @sinonjs/fake-timers @sinonjs/samsam)
13
do
14
wanted="$(cut -d: -f2 <<< "$package")"
0 commit comments