2 ms·
In addition to the other solution posted, a global find & replace is... kinda trivial to do in most editors. Anyway, besides that, I'm sure you can use differe
by Cthulhu_ 4y ago
In addition to the other solution posted, a global find & replace is... kinda trivial to do in most editors.
Anyway, besides that, I'm sure you can use different versions of a library within one codebase well enough; especially in NodeJS land, nowadays, differences between library versions are small.
- paulgb 4y ago> a global find & replace is... kinda trivial to do in most editors. Global find & replace isn't a real solution here. For example, if I'm reviewing someone else's code, it's harder for me to verify that they didn't miss an import. In general, anything that replaces a single source-of-truth (packages.json) with a process (“run find-and-replace with this query”) will increase the amount of energy spent on being vigilant about that process at the expense of other things.
- yencabulator 4y ago> For example, if I'm reviewing someone else's code, it's harder for me to verify that they didn't miss an import. Sounds like you want a lock file. Deno supports that just fine.