We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6b19b1 commit 28725afCopy full SHA for 28725af
packages/components/script/utils/del-path.ts
@@ -12,10 +12,9 @@ const delPath = async (path: string) => {
12
13
files.forEach(async (file) => {
14
const curPath = resolve(path, file)
15
-
16
if (fs.statSync(curPath).isDirectory()) {
17
// recurse
18
- if (file !== 'node_modules') await delPath(curPath)
+ await delPath(curPath)
19
} else {
20
// delete file
21
if (!stayFile.includes(file)) {
0 commit comments