@reactful/create 0.0.82 → 0.0.84
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -5
- package/package.json +1 -1
package/index.js
CHANGED
@@ -73,14 +73,15 @@ async function downloadGitHub(user, repository, subdir, destination) {
|
|
73
73
|
}
|
74
74
|
|
75
75
|
for (const item of contents) {
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
76
|
+
if (item.type === 'dir' && item.name) {
|
77
|
+
const from = `${subdir}/${item.name}`
|
78
|
+
const goto = `${destination}/${item.name}`
|
79
|
+
console.log('- from', from)
|
80
|
+
console.log('- goto', goto)
|
80
81
|
await downloadGitHub(from, goto)
|
81
82
|
continue
|
82
83
|
}
|
83
|
-
|
84
|
+
|
84
85
|
if (item.type != 'file') continue
|
85
86
|
|
86
87
|
const filename = path.join(destination, item.name)
|