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

Update Yarn and Node #152

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

scinos
Copy link
Collaborator

@scinos scinos commented Oct 31, 2024

Pull Request Template for Home Assistant / Lovelace Card Repository

Overview

This PRs updates Yarn to a non-deprecated versions, and Node to the latest LTS version. This should make development
easier as we can use Yarn from Node's corepack, no need to try complex methods to install Yarn 1.x

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Documentation update
  • Refactoring
  • Other (please describe):

.eslintrc.cjs Outdated Show resolved Hide resolved
.eslintrc.cjs Outdated Show resolved Hide resolved
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
Copy link
Collaborator Author

@scinos scinos Oct 31, 2024

Choose a reason for hiding this comment

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

Yarn does this automatically when migrating from Yarn 1.x. I think this is meant to be used by GitHub for language statistics (https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github)

"description": "Successor to Sun Card - Visualize the position of the sun over the horizon",
"type": "commonjs",
"main": "dist/index.js",
"scripts": {
"dev": "rollup -c rollup.config.dev.mjs --watch",
"build": "rimraf dist && yarn lint && yarn rollup",
"build": "rm -fr dist && yarn lint && yarn rollup",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Modern yarn has its own shell, to guarantee that things like rm -fr works the same across all platforms, including Windows.

@scinos scinos marked this pull request as draft October 31, 2024 16:13
@ThomDietrich
Copy link

ThomDietrich commented Oct 31, 2024

Hey @scinos,
thanks for your support! This PR to update dependencies was desperately needed :) I myself am just a repo maintainer and have no js/node experience.

If you are interested, could you also check #131 and see if further additions in your PR (or another) would be worthwhile?

@scinos
Copy link
Collaborator Author

scinos commented Nov 3, 2024

This PR to update dependencies was desperately needed :)

I'm happy to update this lib and bring it to modern standards :) This PR is still in draft because I broke many tests, I'd like to fix them before merging it.

If you are interested, could you also check #131 and see if further additions in your PR (or another) would be worthwhile?

Sure!

@scinos
Copy link
Collaborator Author

scinos commented Nov 5, 2024

PR ready for review (ping @ThomDietrich).

I managed to update Yarn + Node without having to change ESLint or Typescript, so this PR is now smaller than it was when I initially open it.

I can't see CI results until this PR is approved, but locally everything seems to work:

Screenshot 2024-11-05 at 10 35 03

@scinos scinos marked this pull request as ready for review November 5, 2024 09:41
@ThomDietrich ThomDietrich merged commit 73e8f77 into rejuvenate:main Nov 5, 2024
1 of 3 checks passed
@ThomDietrich
Copy link

Thanks! I've merged the PR to have a baseline CI response. The Build and Release job errors out with "Run actions/cache@v1: Error: Input required and not supplied: path"

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.

2 participants