Skip to content

Commit 618de6e

Browse files
committed
🔨 Re-add login check
1 parent 5ab965d commit 618de6e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,15 @@ const login = async () => {
127127
try {
128128
ensureDirExists(output)
129129

130-
await login()
131-
const library = {}
130+
console.log('Logging into tailwindui.com...')
131+
const success = await login()
132+
if (!success) {
133+
console.log('Invalid credentials')
134+
return 1
135+
}
136+
console.log('Success!')
132137

138+
const library = {}
133139
const $ = await downloadPage('/components')
134140
const links = $('.grid a')
135141
const count = 1 //links.length

0 commit comments

Comments
 (0)