Updating
There are two things you may want to update in TSWoW, modules and TSWoW itself. This guide will outline how to do both.
Updating TSWoW
Note: TSWoW version 0.11 made some fundamental changes to the project structure, you must follow some additional instructions for migrating from older versions.
TSWoW itself is distributed through our main repository. If you wish to change your version of TSWoW, all you need to do is:
-
Download your desired version
-
Thoroughly shut down TSWoW and vscodium.
-
Extract
bin
,node_modules
andpackage.json
from the archive, and replace all those files in your installation. -
Run
npm i
in the installation directory once. -
Start TSWoW normally.
Updating Modules
To update a module to the latest version, follow these steps:
-
Start TSWoW normally
-
Use the terminal command
module update
, optionally with a module name following it. TSWoW will then pull the source from the remote repository if any updates are available.
Currently, doing other git operations or edits on installed modules is somewhat broken. To make sure your scripts are compiled correctly, shut down tswow, remove the noedit
file from the project root if it’s present, make your changes, and then start tswow again.