Skip to content

Commit 28725af

Browse files
committed
fix(mono): 解决组件打包问题(node_modules文件夹未删除问题)(changelog-needed)
affects: @ued-plus/components ISSUES CLOSED: none
1 parent c6b19b1 commit 28725af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/components/script/utils/del-path.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ const delPath = async (path: string) => {
1212

1313
files.forEach(async (file) => {
1414
const curPath = resolve(path, file)
15-
1615
if (fs.statSync(curPath).isDirectory()) {
1716
// recurse
18-
if (file !== 'node_modules') await delPath(curPath)
17+
await delPath(curPath)
1918
} else {
2019
// delete file
2120
if (!stayFile.includes(file)) {

0 commit comments

Comments
 (0)