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

Switch to npm #3831

Merged
merged 7 commits into from
Aug 31, 2023
Merged

Switch to npm #3831

merged 7 commits into from
Aug 31, 2023

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Aug 7, 2023

What

Drop yarn in favor of npm

yarn --> npm install
yarn build --> npm run build
yarn test --> npm run test

Why

Using yarn with newer versions of nodejs caused build errors. Therefore to allow using current maintained nodejs version 18 and 20 drop yarn in favor of npm.

When we did choose yarn at the beginning of the GSA JavaScript version, yarn was much faster and more reliable. But in the meanwhile npm got on par to yarn's features and speed. Additionally the yarn project changed it's direction and re-implemented yarn which resulted in the 2.x and later versions and abandoned 1.x which we use(d).

Therefore drop yarn and switch to npm which allows to use maintained software again.

@bjoernricks bjoernricks requested review from a team as code owners August 7, 2023 12:02
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Conventional Commits Report

Type Number
Changed 6

🚀 Conventional commits found.

Copy link
Member

@y0urself y0urself left a comment

Choose a reason for hiding this comment

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

LGTM ...

@bjoernricks bjoernricks enabled auto-merge (rebase) August 7, 2023 18:48
Start using npm instead of yarn. We are still using yarn classic which
is deprecated. Therefore switch to npm.
Use current Debian stable (bookworm), nodejs 18 (LTS) and npm to build
and install GSA for the container image. This updates to current
maintained software and removes the extra dependency on yarn.
Drop yarn in favor of npm and use currently supported nodjs version 18
and 20.
Replace yarn with npm for creating the release files.
Using npm requires passing `--` before the extra arguments.
@bjoernricks bjoernricks merged commit 1f168ee into main Aug 31, 2023
12 of 13 checks passed
@bjoernricks bjoernricks deleted the switch-to-npm branch August 31, 2023 11:40
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.

3 participants