Kafkatorio/modules/events-mod
Lazzexus c8de66247a Fix mod zip layout: set tsconfig rootDir so control.lua lands at mod root
Without an explicit rootDir, tstl computed output paths relative to
tsconfig.json's own directory (modules/events-mod/) rather than the
actual TypeScript source root (src/main/typescript/), so control.lua
and settings.lua ended up nested under src/main/typescript/ in the
packaged mod zip instead of at its root - where Factorio requires them
to be. The mod would not have loaded at all as packaged.

This went uncaught because packageFactorioMod never previously
produced real output (blocked by the now-fixed kxs-ts-gen-core/JitPack
issue). Verified by actually running packageFactorioMod and inspecting
the resulting zip: control.lua, settings.lua and info.json are now at
the root, and control.lua's require() calls ("main.global-init" etc.)
correctly resolve against that flat layout.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-12 15:53:03 +02:00
..
src/main Fix kxs-ts-gen-core dependency resolution and unblocked compile bugs 2026-10-12 15:40:33 +02:00
build.gradle.kts Port events-mod to Factorio 2.0.77, declare SE/Krastorio 2 compatibility 2026-10-12 15:06:30 +02:00
mod-portal-description.md big ol' refactor of the Gradle Factorio Mod 2022-12-18 01:41:14 +01:00
package-lock.json Fix compile errors surfaced by actually building against Factorio 2.0.77 2026-10-12 15:27:50 +02:00
package.json Fix compile errors surfaced by actually building against Factorio 2.0.77 2026-10-12 15:27:50 +02:00
tsconfig.json Fix mod zip layout: set tsconfig rootDir so control.lua lands at mod root 2026-10-12 15:53:03 +02:00