Browse Source

fixed bug

master
1549469775 3 years ago
parent
commit
333b96e8fb
  1. 2
      packages/build/util.ts

2
packages/build/util.ts

@ -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 '))

Loading…
Cancel
Save