Open cruzdanilo opened 2 weeks ago
Interesting use-case.
I'm thinking it doesn't work because pkgroll expects it to be executed when the CWD is the root of the project.
Feel free to submit a PR!
@privatenumber sure. i will check the actual cwd, but how would it affect ts vs js? it is also weird that it doesn't happen in other environments.
Not sure—I was just speculating since I think that's a pretty big assumption I made when I was developing it. Please investigate and report back if you can
some findings:
/home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1899_624633c3449ae285a3524f3806c80932
.git
dirC.UTF-8
instead of the usual en_US.UTF-8
, which causes file sorting to be different
Problem
the issue only happens in a very specific case:
prepare
(repro: https://github.com/cruzdanilo/repro-pkgroll-lib)error:
seems like the file is being interpreted as javascript. the error doesn't happen in multiple machines i tried (macos and linux)
Expected behavior
no error
Minimal reproduction URL
https://github.com/cruzdanilo/repro-pkgroll-ci/actions/runs/11057662251/job/30721965511
Version
v2.5.0
Node.js version
v22.9.0
Package manager
pnpm
Operating system
Linux
Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution