@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.
Files changed (2) hide show
  1. package/index.js +8 -3
  2. 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
- const from = `${subdir}/${item.name}`
77
- const goto = `${destination}/${item.name}`
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactful/create",
3
- "version": "0.0.81",
3
+ "version": "0.0.83",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "description": "reactful scafold tool",