Consider the following scenarios:
Under the stresses that come with the combination of these two scenarios, software developers often overlook one critical aspect to a successful, future-proof project: external package-maintenance.
I recently sat down and wrote an email explaining how I go about package-maintenance and thought it would be useful to write up those notes and share them with others.
The tech world moves quickly; new code styles, frameworks and best practices evolve in the blink of an eye. Before you know it, the packages you'd installed the previous year are no longer documented and there aren’t any blogposts describing how to upgrade them to their latest versions. Nightmare.
My general rule of thumb to avoid this ill-fated destiny is to set aside some time each sprint to upgrade packages. The process isn’t really involved, but it can be time-consuming if you upgrade a handful of packages at once and find that one of them breaks your code. You then have to go through each, one by one, downgrade and figure out if it’s the culprit.
My upgrade procedure (in this case using the yarn package manager) is:
yarn add clean-webpack-plugin@latestor
yarn add clean-webpack-plugin@VERSION_NUMBERto install a specific version
Tom Szpytman is a Software Developer at Encodo and works primarily on the React/Typescript stack
Sign up for our Newsletter