Posts tagged with npm

  • Using Lerna for TypeScript and npm

    May 13, 2021

    In this post, I’m showing a way to setup a monorepo with Lerna, taking into account some pitfalls when publishing to npm.

  • Upgrading Dependencies

    Nov 4, 2018

    This page shows how to upgrade dependencies in various programming languages and dependency management systems.

  • npm login credentials on the CI server

    Jan 28, 2017

    In a previous post, I was discussing a way to publish an npm package to the public npm registry. A big prerequisite for that to work is that you have previously logged in to the CI server in order to authenticate against npm. But we can also fix that manual step and integrate it in the build.

  • Automatic versioning of npm packages

    Aug 20, 2016

    When you are the maintainer of an npm package, you need to do some administrative work around its versioning. When you release a new version, you need to make sure the package.json is updated, the package is correctly uploaded to npm registry, the git repository is tagged accordingly and so on. You shouldn’t be doing these things manually if you can automate them.

  • On the left-pad drama

    Mar 26, 2016

    This week the internet exploded in drama after 11 lines of code got unpublished from npm. If you didn’t read about it, the summary is that the developer of left-pad removed his package from npm, after npm renamed another package of his because of some name conflict with some other company’s trademark or so. Lots of other packages broke because of this due to the missing dependency. What is interesting here, is that this removed left-pad package consists of a single function (only 11 lines of code). How can that tiny package break the internet?