This commit is contained in:
ex61wi
2026-04-06 20:59:36 +02:00
parent aa0bc83c32
commit 3d9ea1f24e
6 changed files with 107 additions and 28 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"name": "dcs-mission-scripting-tools-compiler",
"devDependencies": {
"@types/node": "25.5.2"
},
"scripts": {
"build": "tsc -p . --outDir dist",
"watch": "tsc -p . --outDir dist --watch"
},
"files": [
"dist/**/*"
]
}
+2
View File
@@ -64,6 +64,8 @@ export class ScriptCompiler {
const readStart = Date.now();
for (const entry of entries) {
if (entry.isFile() && entry.name.endsWith('.lua')) {
const fullPath = path.join(entry.parentPath ?? entry.path, entry.name);
const relativePath = path.relative(this.options.sourcePath, fullPath);
const content = fs.readFileSync(fullPath, 'utf-8');