Skip to content

Commit

Permalink
fix: fix recursive rmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
KP2048 committed Feb 20, 2023
1 parent 0c01041 commit 6d0dfaa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ function build(args: yargs.ArgumentsCamelCase<{ dev: boolean }>)
recursive: true
})
}
fs.rmdirSync(plugin.name)
fs.rmdirSync(plugin.name, {
recursive: true
})
process.chdir('..')
}

Expand Down Expand Up @@ -376,6 +378,9 @@ function _package(args: yargs.ArgumentsCamelCase<{ dev: boolean }>)
{
child_process.execSync(`zip -r "${path.join(process.cwd(), zip)}" "${path.join(plugin.name, readme)}"`)
}
fs.rmdirSync(plugin.name, {
recursive: true
})
process.chdir('..')
}

Expand Down

0 comments on commit 6d0dfaa

Please sign in to comment.