|
@ -30,7 +30,7 @@ export { }` |
|
|
const n = "Ps" + _.upperFirst(_.kebabCase(name)) |
|
|
const n = "Ps" + _.upperFirst(_.kebabCase(name)) |
|
|
componetnsStr.push(`import ${n} from "./${name}"`) |
|
|
componetnsStr.push(`import ${n} from "./${name}"`) |
|
|
newComp.push(n) |
|
|
newComp.push(n) |
|
|
typeArray.push(n + `: typeof import('./lib/${name}')['${n}']`) |
|
|
typeArray.push(n + `: typeof import('princess-ui')['${n}']`) |
|
|
}) |
|
|
}) |
|
|
componetnsStr.push(`export { \n ${newComp.join(",\n ")} \n}`) |
|
|
componetnsStr.push(`export { \n ${newComp.join(",\n ")} \n}`) |
|
|
typeStr = typeStr.replace("__placeholder__", typeArray.join(',\n ')) |
|
|
typeStr = typeStr.replace("__placeholder__", typeArray.join(',\n ')) |
|
|