Skip to content

feat!: yargs is now ESM first #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shadowspawn
Copy link
Member

@shadowspawn shadowspawn commented Apr 13, 2025

Stop shipping dual esm/cjs. Ship just esm and rely on require(esm) support in recent versions of node to support CJS users.

The main testing code "moved" from .cjs to .mjs with minor changes, but the diff is messy because both files existed.

Following yargs moving from dual CJS/ESM to ESM-only: yargs/yargs#2451

@shadowspawn
Copy link
Member Author

The linting is out of date, and I abandoned my first try at copying setup form yargs when I realised yargs is not currently linting .ts files! 😅

eslint has had a lot of work over last year. standardx is unsupported, but there is now an active fork: neostandard. I haven't used gts anywhere else so not sure how current that is.

@bcoe are you still keen on standard and/or gts, or should I just work on getting base eslint setup for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant