thepassle / barrel-begone

50 stars 1 forks source link

add entrypoint config option #7

Open thepassle opened 5 months ago

thepassle commented 5 months ago

Currently we scoop up the entrypoints based on the package.json, but it can also be helpful to be able to run it on any arbitrary file. Something like:

npx barrel-begone --entrypoint=foo.js
# or
npx barrel-begone --entrypoints=foo.js,bar.js

Or

export default {
  entrypoints: ['foo.js']
}

Should be a pretty small change