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