A template for creating Factorio mods using TypeScript. It contains a basic structure and configuration for you to start developing your mod.
npx degit https://github.com/LemonNekoGH/typescript-factorio-mod-template <mod-name>Symlink the mods to your Factorio mod folder:
cd /path/to/mod-name
ln -s /path/to/mod-name /path/to/factorio/data/mod-nameInstall dependencies:
pnpm iRun the script:
pnpm run devNow you can use the commands in Factorio, the script will be compiled automatically, but you need to exit and re-enter the game to see the changes(no need to restart the game).