0
Ship cleaner packages (without the ./dist or ./src folder) by publishing a subfolder to NPM
Bram.us
Ship cleaner packages (without the ./dist or ./src folder) by publishing a subfolder to NPM
One detail that has always bugged me about publishing a package to NPM is how build output paths like dist/ can leak into the public API.Turns out, npm publish can do it, but to make it work seamlessly in a real-world project, you need a few extra pieces in place. Let me walk you through how it works.
www.bram.us
0 comments
log in to comment.