You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since node's path.relative is relative to process.cwd(), if process.cwd() offers less directories than what you're trying to jump back, it will begin to omit ../'s.
Having a cwd close to / is common in CI environments.
The text was updated successfully, but these errors were encountered:
How Do We Reproduce?
process.cwd()
to have less depth than the directories you jumped backThere's a REPL here: https://repl.it/@mattdrose/CiRollupExample
Expected Behavior
becomes
Actual Behavior
becomes
Why is this happening?
I was able to trace the issue to this line:
rollup/src/Chunk.ts
Line 624 in b1df517
This resolves to:
Since node's
path.relative
is relative toprocess.cwd()
, ifprocess.cwd()
offers less directories than what you're trying to jump back, it will begin to omit../
's.Having a
cwd
close to/
is common in CI environments.The text was updated successfully, but these errors were encountered: