Replies: 36 comments 44 replies
-
|
We're aware of this limitation. Serializing to the binary Bun lockfile format is a non-trivial task and not imminently forthcoming. For now, if you want to use cd ./path/to/bun/project
bunx @turbo/workspaces@latest convert ./ yarn --skip-install
turbo pruneIf you don't want any of the automated changes to be permanent you can then proceed to revert all changes in the repository. Note that the output pruned repository must use the package manager you select ( |
Beta Was this translation helpful? Give feedback.
-
Doesn't bun support the yarn lockfile format? Why the need to switch package manager even after converting a bun.lockb to a yarn lockfile? P.S would love for this issue to get attention, this is the last blocker for us to move over to bun as our package manager. |
Beta Was this translation helpful? Give feedback.
-
|
Bun supports serializing the There's some chatter around |
Beta Was this translation helpful? Give feedback.
-
|
Bun supports a human readable lock file now Maybe an easy fix would be to have an option for turbo to read specific lock files the same way bun does |
Beta Was this translation helpful? Give feedback.
-
|
Is there any update on this guys? We would also like to use Turborepo alongside bun, but this issue is quite important for us. I'd be happy to help in any way I can |
Beta Was this translation helpful? Give feedback.
-
|
+1 to this problem |
Beta Was this translation helpful? Give feedback.
-
|
YES please 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
I am also very interested in this being supported. My team would love to use bun alongside turbo but this is the main bottleneck preventing us from doing so. |
Beta Was this translation helpful? Give feedback.
-
|
This would be lot appreciated for us too. |
Beta Was this translation helpful? Give feedback.
-
|
This is the only thing blocking my company from switching to bun |
Beta Was this translation helpful? Give feedback.
-
|
I am unsure if this actually fixed the problem as I didnt have time to test that the lock file works. But what seemed to have worked for me was doing (Dont mind the npm stuf it seems bun install -g does not really work inside docker for me because the it doesent seem to add the commands to path inside docker only) From what I understand the reason for this not being supported is that prune actually generates a new lockfile from the old one with only a certain package's dependencies in it and it cannot currently parse the .lockb format. Bun currently supports installing from lockb (and from package-lock.json if you are on canary as of this moment). Here is the open issue related to it supporting yarn.lock file: oven-sh/bun#6409. As soon as they support installing from a yarn.lock file this should become a non problem because bun install can generate a yarn.lock file with TLDR: (be on bun canary) => install with bun install -y always or add the I didnt yet have time to fully test this theory but if someone has time and manages to do so please let me know I would appreciate it alot. Otherwise I will try to come back to you when I properly pull this off ( which will take some time as I am new to docker and devops in general ). |
Beta Was this translation helpful? Give feedback.
-
|
@XenoWad01 any updates? |
Beta Was this translation helpful? Give feedback.
-
|
When deploying docker files to Fly.io, using a Turborepo, having the prune command makes life a lot easier. Especially as your monorepo grows in size |
Beta Was this translation helpful? Give feedback.
-
|
Bun supports yarn.lock for very long time. It is a shame that it is not supported in turbo =( |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
Bun v1.2 officially has json lock files, will we get an update on that please? |
Beta Was this translation helpful? Give feedback.
-
|
any updates.. |
Beta Was this translation helpful? Give feedback.
-
|
https://bun.sh/blog/bun-v1.1.39#bun-lock-is-bun-s-new-text-based-lockfile
Really hoping to see an update on this 🚢 |
Beta Was this translation helpful? Give feedback.
-
|
No one subscribed to this thread have the skills to implement this?? 🤓 |
Beta Was this translation helpful? Give feedback.
-
|
Maybe Devin can do this? 🧌 |
Beta Was this translation helpful? Give feedback.
-
|
We're also looking forward to this 🙂 |
Beta Was this translation helpful? Give feedback.
-
|
Any updates? |
Beta Was this translation helpful? Give feedback.
-
|
I've taken a stab at implementation here: #10175 |
Beta Was this translation helpful? Give feedback.
-
|
This will be awesome! |
Beta Was this translation helpful? Give feedback.
-
|
@camero2734 Thank you for the contiribution! This is now released in v2.4.5-canary.5 and above! |
Beta Was this translation helpful? Give feedback.
-
|
An update -- there was a small issue remaining mostly with peerDependencies (but also possibly with devDependencies) in |
Beta Was this translation helpful? Give feedback.
-
|
Getting an issue installing a pruned workspace with turborepo @camero2734 Let me know if you've seen this before otherwise I can go ahead and create an issue for it.
Update: Even solving the above issue just leads to more...
FYI using |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I can confirm that using See https://github.com/MLNativeAI/paperjet/ for reference. |
Beta Was this translation helpful? Give feedback.
-
|
This worked for me.
FROM oven/bun:1.3.1-alpine AS base
FROM base AS builder
WORKDIR /app
RUN bun install --global turbo@^2
COPY . .
RUN turbo prune api --docker
FROM base AS installer
WORKDIR /app
COPY --from=builder /app/out/json/ .
RUN bun install --linker hoisted
COPY --from=builder /app/out/full/ .
RUN bun run turbo build
FROM base AS runner
WORKDIR /app
COPY --from=installer /app/apps/api/dist .
EXPOSE 3000
ENTRYPOINT ["./app"] |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Which project is this feature idea for?
Turborepo
Describe the feature you'd like to request
Support
turbo prunewhen using bun.Describe the solution you'd like
Running
turbo pruneshould work with bun the same as with npm.Describe alternatives you've considered
Not using bun or not using turbo
Beta Was this translation helpful? Give feedback.
All reactions