Skip to content

Commit

Permalink
fix: rewrite @element-plus/utils incorrectly (element-plus#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiongAmao authored Dec 23, 2020
1 parent a2c3e09 commit 717db6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/gen-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fs.readdirSync(libDirPath).forEach(comp => {
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-')
}).replace('@element-plus/', '../el-').replace('el-utils', 'utils')
fs.writeFileSync(path.resolve(__dirname, '../lib', newCompName, 'index.d.ts'), newImp)
}
}
Expand Down

0 comments on commit 717db6a

Please sign in to comment.