@smartface/builder
Advanced tools
Comparing version 1.0.0-alpha.22 to 1.0.0-alpha.23
{ | ||
"name": "@smartface/builder", | ||
"version": "1.0.0-alpha.22", | ||
"version": "1.0.0-alpha.23", | ||
"description": "Smartface Builder", | ||
@@ -43,3 +43,3 @@ "bin": { | ||
}, | ||
"gitHead": "737d64d898a0406cdd5a7adb0adfbdaea97cb452" | ||
"gitHead": "37486aa6e62ba841e0e3dec292913777daf647b9" | ||
} |
@@ -171,8 +171,10 @@ const fs = require('fs-extra'); | ||
comp.flatListItems.forEach(async item => { | ||
let oldFilePath = path.join( | ||
genResult.userFolderPath, | ||
`${util.capitalizeFirstLetter(comp.name)}${util.capitalizeFirstLetter( | ||
item.oldName | ||
)}Item.tsx` | ||
); | ||
let oldFilePath = item.oldName | ||
? path.join( | ||
genResult.userFolderPath, | ||
`${util.capitalizeFirstLetter(comp.name)}${util.capitalizeFirstLetter( | ||
item.oldName | ||
)}Item.tsx` | ||
) | ||
: ''; | ||
let newFilePath = path.join( | ||
@@ -179,0 +181,0 @@ genResult.userFolderPath, |
Sorry, the diff of this file is not supported yet
242885
5359