Skip to content
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

chore: upgrade dependencies #189

Merged
merged 4 commits into from Jul 15, 2021
Merged

chore: upgrade dependencies #189

merged 4 commits into from Jul 15, 2021

Conversation

wagoid
Copy link
Owner

@wagoid wagoid commented Jul 7, 2021

The PR got a bit big due to the update to support ES modules, but thoe updates are mostly about import syntax and renamed files.

This will help upgrading dependencies to new versions that are exported
as ESM.

BREAKING CHANGE: Node.js version used on the action updated from 12 to
16
Some packages were updated to versions that now use ECMAScript modules,
so this repo was updated to use ES modules using Node.js built-in support.

Update was done using the great guide from @sindresorhus:
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
"rules": {
"prettier/prettier": "error",
"no-console": "off",
"no-process-exit": "off",
"node/no-unpublished-require": "off"
"node/no-unpublished-require": "off",
"node/no-unpublished-import": "off",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to disable this and ES syntax rules for now, they're not fully supporting ESM syntax yet. From docs:

⚠️ ECMAScript 2015 (ES6) does not define the lookup logic and Node does not support modules yet. So this rule spec might be changed in future.

@wagoid wagoid requested a review from jdbruijn July 7, 2021 18:35
@@ -0,0 +1,12 @@
{
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

standard-version doesn't support .cjs yet, so I updated to use the .json version instead

@wagoid wagoid merged commit 711b4f4 into master Jul 15, 2021
@wagoid wagoid deleted the chore/upgrade-deps branch July 15, 2021 08:35
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.

None yet

1 participant