-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
bug: pnpm build is not rebuilding dist folder after being deleted #1053
Comments
I think You have to delete the tsbuildinfo |
Even after deleting it inside node_modules/.cache/tsbuildinfo.json, this won't work. |
I only managed to make it build again and output the dist folder, after deleting both |
Had the same behavior. Tried it with Workaround is currently to use an alternative compiler/bundler. Currently I use
Turbo version is 2.0.3 |
@dBianchii i spent some time at stackoverflow and found the following: Updated my
and it seems to work Here the relevant
|
Hi, short update: I'm currently evaluating the usage of "tsx" in prod via
The Why? Should we do it? Yes, no, maybe. There is a gh issue where they did a quick benchmark. I added "tsx" as |
I don't think you have to delete the root one, just the one for the task you wanna bust the cache for. I don't know if typescript is able to restore the output or if it just uses the cache for incremental builds. Do you get a different behavior in a more minimal reproduction environment? |
I am using exactly stock and up to date create-t3-turbo. I just confirmed now that even after I delete only |
Fixed by #1140!! 🎉 Thank you @juliusmarminge |
Provide environment information
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz
Memory: 3.94 GB / 15.36 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
Yarn: 1.22.21 - ~/.local/share/pnpm/yarn
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
pnpm: 9.0.4 - ~/.local/share/pnpm/pnpm
bun: 1.1.3 - ~/.bun/bin/bun
Describe the bug
After deleting the either compiled
dist
folder in eitherpackages/db
orpackages/api
, when you call pnpm build for that directory once again, it seems that turbo is caching the result and not outputing thedist
folder once again.Link to reproduction
I mean... this repo?
To reproduce
pnpm i
on a clean repo (after doingpnpm clean:workspaces
)pnpm build -F api
orpnpm build -F db
.pnpm build -F api
Additional information
https://www.loom.com/share/87c7ac25faa242c8888217927fd11c0d?sid=2487cce1-ae7a-414e-a30b-8dcb69845db0
The text was updated successfully, but these errors were encountered: