-
Notifications
You must be signed in to change notification settings - Fork 120
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
base: main
Are you sure you want to change the base?
Conversation
The linting is out of date, and I abandoned my first try at copying setup form
@bcoe are you still keen on standard and/or gts, or should I just work on getting base eslint setup for now? |
For the Puppeteer issue - https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu |
gts is what my old team at Google wrote and uses, so I got in the habit of using it out of the box. I don't have a strong preference, if setting up the baseline eslint is easier for you. Let's just pick a good out of the box configuration and use it. |
Co-authored-by: Nikolay Vitkov <[email protected]>
Thanks for comments Benjamin. I'll have another go at updating gts and dropping standardx. I got a bit lost in the weeds in first attempt. |
Progress update. Second experiment with linting. I switched from Lots of errors, but mostly prettier related. Perhaps not surprising switching from one opinionated linter to another. 😅 (I will not apply lots of formatting changes as part of this PR.)
Suppressing the prettier checks, 106 errors of only two sorts. e.g.
|
Some yak-shaving working through CI tests. Still sorting:
|
@shadowspawn feel free to send me an email when yak shaving is done 👍 |
Short version: dropping the broken+stale "Optimize" test using Long version Dropping the "Optimize" CI test which was originally added in #373.
|
Ready for review Note: prettier is currently disabled (ignoring |
@@ -1,27 +0,0 @@ | |||
import cleanup from 'rollup-plugin-cleanup' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see this go away.
.github/workflows/ci.yaml
Outdated
@@ -10,7 +10,7 @@ jobs: | |||
runs-on: ubuntu-latest | |||
strategy: | |||
matrix: | |||
node: [12, 14, 16] | |||
node: [20, 22, 23] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24 is out right, perhaps drop 23 in favour of 24?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit around using Node 24 in testing matrix.
I have added the default export trick for CommonJS, which required bumping (We didn't hit this issue and need to do bump |
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