Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: