workflow: fix sync script

This commit is contained in:
Evan You
2018-02-28 15:59:05 -05:00
parent cd238587dd
commit 094681fd14
+1 -1
View File
@@ -24,7 +24,7 @@ const getRemoteVersion = async (pkg) => {
}
let res
try {
res = await request(`http://registry.npmjs.org/${pkg}/latest`)
res = await request(`http://registry.npmjs.org/${pkg}/latest`, { json: true })
} catch (e) {
return
}