@reactful/create 0.0.81 → 0.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)
|