huozhi / bunchee

Zero config bundler for ECMAScript and TypeScript packages
https://npmjs.com/bunchee
948 stars 29 forks source link

If specify output folder through `-o`, the folder will be auto clean #417

Closed nnecec closed 10 months ago

nnecec commented 10 months ago

bunchee ./index.ts -o ./index.js will remove the root folder 😂

I think need to consider if output path within input path, then auto clean output path.