-
The However, the returned Is this intentional? I'd think a rename would modify the passed file. Alternatively, I guess this should be documented more clearly. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 3 replies
-
Never mind, the implementation is fine, looks like no surprises here (https://github.com/vfile/vfile-rename/blob/main/index.js). There is something very odd going on with my TypeScript setup. Sorry, feel free to close/delete this. |
BetaWas this translation helpful?Give feedback.
All reactions
-
perhaps you have a version mismatch? |
BetaWas this translation helpful?Give feedback.
All reactions
-
That’s my guess, thathttps://github.com/vfile/vfile-rename/blob/103666cc3a5475df5e9382cdc209f17d1caead41/index.js#L44 is creating a new file |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Ah yes, that was probably it. Although I'm sure had the latest & greatest of all dependencies, I guess both Thanks for the swift response! |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Ohh yeah linking unfortunately does that, I’ve had similar problems before. It’s one part of what I don’t like about TypeScript (which we now use everywhere). It forces the use of |
BetaWas this translation helpful?Give feedback.