Update your Site
Keep your LightNet site up to date by following these steps:
- Check your dependencies by running
Terminal window npm outdated - Read the release notes on GitHub
- Update your dependencies by running
This updates your dependencies to the latest version according to the version specifiers inside
Terminal window npm updatepackage.json
. - There are changes that are not updated automatically, so called major releases (first position of the version number is increased).
Major releases might break their compatibility with your project. LightNet depends on other packages e.g. Astro and Tailwind CSS.
You must not major update these dependencies unless the LightNet release notes tell you to do so. The LightNet project will follow their
release and introduce major updates from time to time. If there is a new major LightNet release do the following:
- Update your project to latest LightNet major release: Inside
package.json
change the version numbers to match the latest LightNet version. Keep the^
suffix to support minor and patch updates withnpm update
. - Install the updated LightNet dependencies:
Terminal window npm install - Check the LightNet release notes to see what additional changes are needed for your project.
This might include updating major version numbers of other packages. In this case update their version numbers in
package.json
and executenpm install
again. - Follow the release notes to adjust your project to LightNet’s changes.
- Update your project to latest LightNet major release: Inside