3 ms·
The touch trick is nice. There's definitely merit to such an approach, since it provides a simple cross-platform way to check if node_modules exists. Though th
by soulofmischief 2y ago
The touch trick is nice. There's definitely merit to such an approach, since it provides a simple cross-platform way to check if node_modules exists.
Though things begin to get more complicated if say, the project use plug-n-play resolution. `yarn` handles both cases.
Another benefit of `"test": "yarn && <test command>"` is that you also make sure the project is in a buildable state when testing.