mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
chore: update build type
This commit is contained in:
parent
45e7ade6dd
commit
e4610e0feb
@ -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-')
|
||||
|
Loading…
Reference in New Issue
Block a user