dyslectric.dev
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
JavaScript@programming.devbycodeinabox@programming.dev
14 days

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

www.bram.us English
0
    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.
    You must log in or register to comment.

    JavaScript@programming.dev

    javascript@programming.dev

    Subscribe from remote instance

    Create post

    Report community

    Modlog
    You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]
    Visibility: Public

    This community is visible to everyone.

    0 users / Day3 users / Week3 users / Month3 users / 6 months8 posts0 comments0 local subscribers2.81K subscribers
    Mods: Erlingur@programming.dev
    • BE: 1.0.0-beta.2
    • Modlog
    • Instances
    • Docs
    • Code
    • join-lemmy.org