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 dependencies and fix Yarn 2 enable bug #140

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

Discookie
Copy link
Collaborator

Updates yarn to 4.1.0, dependencies to latest available, fixes nodejs update-related issues, and fix enabling Yarn Stable in CI.

Copy link
Collaborator

@vodorok vodorok left a comment

Choose a reason for hiding this comment

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

I would put the Yarn 2 uplift related changes into a different commit .

@@ -42,7 +42,7 @@ suite('Unit Test: Metadata Parser', () => {
const testAndExpectCode = async (filename: string, code: string) => {
await assert.rejects(
() => parseMetadata(path.join(staticPath, filename)),
(err) => {
(err: MetadataParseError) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't you use the MetadataParseError in the next test case too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This change was just to silence a TS type-error because it couldn't deduce the error type of parseMetadata.
Might as well use the type on the next case as well, fixed.

* A recent change requires that Corepack is enabled on the system if we want to interact with Yarn 1 at all, even if that is just to enable Yarn 2+.
@Discookie Discookie requested a review from vodorok April 10, 2024 08:19
Copy link
Collaborator

@vodorok vodorok left a comment

Choose a reason for hiding this comment

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

LGTM

@vodorok vodorok merged commit 061b6f7 into Ericsson:main Apr 10, 2024
5 checks passed
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