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