Skip to main content

Updating IsaacScript

IsaacScript is occasionally updated with new TypeScript definitions, new helper functions, new linting rules, and so on. However, these new updates are not automatically pushed to your mod.

In a TypeScript project, you can see your project dependencies and their current versions by looking at the package.json file. More information can be found in the package.json documentation. You can upgrade the dependencies in your IsaacScript mod in the same way that you would upgrade the dependencies for any other TypeScript program.

As a convenience, the isaacscript program itself can update dependencies like this:

npx isaacscript update

This will automatically update the versions in your package.json file and tell the package manager to install the new versions, if necessary.

If you don't want to use isaacscript, then you could run the npm-check-updates tool directly with something along the lines of:

npx npm-check-updates --upgrade

Or, if you don't want to use the npm-check-updates tool, you can just manually change the versions in your package.json file yourself. For more information, check out this blog, which goes over this process in more detail.

The latest version of the IsaacScript tool can always be found on the npm page or in the monorepo readme.