Skip to content

Update dependencies and fix Yarn 2 enable bug#140

Merged
vodorok merged 3 commits intoEricsson:mainfrom
Discookie:ericsson/fix-ci
Apr 10, 2024
Merged

Update dependencies and fix Yarn 2 enable bug#140
vodorok merged 3 commits intoEricsson:mainfrom
Discookie:ericsson/fix-ci

Conversation

@Discookie
Copy link
Copy Markdown
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
Copy Markdown
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 .

await assert.rejects(
() => parseMetadata(path.join(staticPath, filename)),
(err) => {
(err: MetadataParseError) => {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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