@reactful/create 0.0.71 → 0.0.72
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -64,6 +64,12 @@ async function downloadGitHub(user, repository, subdir, destination) {
|
|
64
64
|
const url = `${prefix}/contents/installation/${subdir}`
|
65
65
|
const contents = await fetch(url).then(x => x.json())
|
66
66
|
|
67
|
+
if (Array.isArray(contents)) {
|
68
|
+
console.error('failed to download scafold from github...')
|
69
|
+
console.log('contents: ', JSON.stringify(contents))
|
70
|
+
console.log('url: ', url)
|
71
|
+
}
|
72
|
+
|
67
73
|
for (const item of contents) {
|
68
74
|
const from = `${subdir}/${item.name}`
|
69
75
|
const goto = `${destination}/${item.name}`
|