-
Notifications
You must be signed in to change notification settings - Fork 70
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
fix(docker): node-jiti
directory created in project root
#120
Comments
Hi thanks for reporting the issue and repro. I still didn't check repro but we do use os.tmpDir() it is strange not happening. Is |
I've checked that as well and looked into the code, I'm wondering the same. |
Manually running
The difference lies in whether |
It seems this is a problem with pnpm only. I've updated the linked repo and created a ticket for pnpm: As it looks like this is not a problem with this repo, I'm closing this issue. |
Nice finding!! Is there a way we can hotfix maybe detecting |
We could detect that, but I don't know what we shall set it to then... 🤔 |
we can try to clear the env, use |
Good idea, that looks like a fair workaround! 🙌 |
Reopening this to have it closed by the #123 |
Environment
Docker
jiti 1.17.1
node 19.7.0-alpine
Reproduction
https://github.com/dargmuesli/nuxt-jiti
Describe the bug
docker build -t nuxt-jiti .
docker run --rm -it nuxt-jiti /bin/sh
ls -la
node-jiti
directory in the project's rootI'd expect the directory to be under
/tmp
.Additional context
"postinstall": "nuxt prepare"
from thepackage.json
RUN pnpm nuxt prepare
to theDockerfile
node-jiti
is created in/tmp
, as expectedThe text was updated successfully, but these errors were encountered: