shelf.cafe
top new
submit Sign in

Ship cleaner packages (without the ./dist or ./src folder) by publishing a subfolder to NPM

0

Bram.us · 28d · discuss

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.

Sign in

Discussions on Bluesky

shelf.cafe - just a place to share interesting blog posts and articles.
about

We can't find the internet

Attempting to reconnect

Something went wrong!

Attempting to reconnect