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

Replace Bun with pnpm #306

Merged
merged 27 commits into from
Jan 27, 2025
Merged

Conversation

sakit0
Copy link
Contributor

@sakit0 sakit0 commented Jan 13, 2025

Summary

This pull request replaces Bun with pnpm across the project, updates scripts and CI workflows accordingly, and switches test imports to use Vitest.

Related Issue

#215

Changes

  • Refactor package.json to replace Bun with pnpm for script commands and update package manager version
  • Replace Bun with pnpm in CI workflows and related scripts
  • Update CONTRIBUTING.md to replace Bun with pnpm in setup instructions
  • Replace Bun with pnpm and update test imports to use Vitest
  • Added several missing packages that caused type errors and made the build fail.
  • Encountered a type error with Timer, so changed it to NodeJS.Timeout .

Testing

  • Verified that all scripts now run successfully with pnpm
  • Confirmed CI pipelines pass without Bun
  • Ran tests locally with Vitest to ensure no breaking changes

Other Information

  • Additional documentation may be needed if there are references to Bun elsewhere.

Copy link

vercel bot commented Jan 13, 2025

@sakit0 is attempting to deploy a commit to the Edge Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
giselle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 5:44am

@sakit0 sakit0 changed the title Chore/migrate bun to pnpm Replace Bun with pnpm Jan 13, 2025
package.json Outdated
@@ -27,11 +28,14 @@
"@octokit/request-error": "6.1.5",
"@octokit/webhooks": "13.3.0",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/api-logs": "^0.57.1",
Copy link
Member

Choose a reason for hiding this comment

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

@sakit0 We have stopped using ^ in this issue #293, so please make the necessary adjustments accordingly!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix!!
81b86f9

@shige
Copy link
Member

shige commented Jan 20, 2025

@sakit0 Could you please fix the following GitHub Actions error?

pnpm-lock.yaml » [email protected] – cookie accepts cookie name, path, and domain with out of bounds characters (low severity)

https://github.com/giselles-ai/giselle/actions/runs/12863427739/job/35859984948?pr=306#step:3:6


I will fix the GitHub Actions license_finder!

@shige
Copy link
Member

shige commented Jan 20, 2025

@sakit0 Could you please update like this commit 7b99788 to resolve the GitHub Actions error?

@sakit0
Copy link
Contributor Author

sakit0 commented Jan 20, 2025

@sakit0
Copy link
Contributor Author

sakit0 commented Jan 24, 2025

@shige
Can I merge this PR?

@shige
Copy link
Member

shige commented Jan 24, 2025

@sakit0 Could you please check the following comments? The CI is failing, so I would like you to fix it.

Could you please fix the following GitHub Actions error?

pnpm-lock.yaml » [email protected] – cookie accepts cookie name, path, and domain with out of bounds characters (low severity)

https://github.com/giselles-ai/giselle/actions/runs/12863427739/job/35859984948?pr=306#step:3:6

@sakit0
Copy link
Contributor Author

sakit0 commented Jan 27, 2025

@shige
I overlooked it!
I will override it until it is addressed in the following release: supabase/ssr#80

95f2964

Copy link
Member

@shige shige left a comment

Choose a reason for hiding this comment

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

@sakit0 LGTM 🎉

@shige shige merged commit 3cb8d9f into giselles-ai:main Jan 27, 2025
4 of 5 checks passed
@sakit0 sakit0 deleted the chore/migrate-bun-to-pnpm branch January 27, 2025 06:39
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