wip
This commit is contained in:
@@ -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/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user