arg icon indicating copy to clipboard operation
arg copied to clipboard

Convert to ES Modules

Open JuanM04 opened this issue 1 year ago • 1 comments

Closes #66

arg now exports a CJS and ESM version. For compatibility reasons, I've avoided using any export default, resulting in this breaking change:

const arg = require('arg')

// Before
const args = arg(/* ... */)

// After
const args = arg.run(/* ... */)

Note: that change can be avoided if the package goes ESM-only, but that seem too radical

@leerob let me now what you think about these changes

JuanM04 avatar Oct 15 '22 14:10 JuanM04

I've added a pnpm build step in CI

JuanM04 avatar Oct 18 '22 16:10 JuanM04