chore: update build type

This commit is contained in:
zazzaz 2020-11-27 12:03:44 +08:00
parent 45e7ade6dd
commit e4610e0feb

View File

@ -29,7 +29,7 @@ fs.readdirSync(libDirPath).forEach(comp => {
path.resolve(libDirPath, newCompName))
// re-import
const imp = fs.readFileSync(path.resolve(__dirname, '../lib', newCompName, 'index.d.ts')).toString()
if(outsideImport.test(imp)) {
if(outsideImport.test(imp) || imp.includes('@element-plus/')) {
const newImp = imp.replace(outsideImport, (i, c) => {
return i.replace(`../${c}`, `../el-${c}`)
}).replace('@element-plus/', '../el-')