— Huh? It's the one you installed theoretically
"You" being the guy trying to run some random project on github that didn't specify the version it needed and now is broken with latest?
— Peer dependencies can be useful if you are building libraries, but not good for projects that are standalone apps
Message permanent page
— npx only installs a module when it doesn't find it in the current node modulesSo
npm installnpx tsc -p .
— Standalone shouldn't require any Typescript installed, neither locally not globally
— But then you might as well just have it as a script, and user doesn't need to do the extra steps of using npx and having to specify args nor figure out if it is installed local or global
— For dev it should, locally
— Build script is better because you can add arbitrary complexity to building without burdening the user with the details, user just does npm run build
npm run build
— User doesn't even have to care if it's typescript
— Very low barrier of entry for contributors is preferrable
— User ≠ person who needs a manual buildThat I call a contributor, and if they can code they surely can read a doc tu understand the requirements
— Y... yeah