NPM Install with just GitHub

1 · Gleb Bahmutov · April 2, 2019, 4 a.m.
I have discussed how to Use GitHub instead of NPM to share and install NPM modules. But that blog post had a huge shortcoming - it did not deal with built or transpiled artifacts. More and more NPM packages are now transpiled from TypeScript for example, and thus usually have two folders: lib and dist. The GitHub repository only has the lib folder with the original source. The built dist folder is the one published to the NPM registry.If we just install an NPM package from GitHub we will not get...