Skip to content

Switch package manager from npm to yarn#288

Open
Carifio24 wants to merge 5 commits intocosmicds:mainfrom
Carifio24:yarn
Open

Switch package manager from npm to yarn#288
Carifio24 wants to merge 5 commits intocosmicds:mainfrom
Carifio24:yarn

Conversation

@Carifio24
Copy link
Copy Markdown
Member

All of our other projects are using yarn as their package manager, so for the sake of consistency, this PR switches this project to use yarn (as opposed to npm). The process here is pretty straightforward:

  • Replace package-lock.json with yarn.lock
  • Update the Dockerfile to build using yarn
  • Update package scripts and the CI workflows to reference yarn instead of npm

This PR also moves our type- and testing-related dependencies into the package's dev dependencies. With the old EBS build process we needed these in the regular dependencies, but that's not the case anymore.

Note that this PR doesn't touch the Terraform infrastructure - since the AWS deployment is now based on the Dockerfile, we only need to update things there.

@Carifio24 Carifio24 added the dependencies Pull requests that update a dependency file label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant