Fix/windows builds (#764)

* Fix windows path issues

* Few script changes to support windows

* Update build scripts

* remove duplicate call

* changelog

* Fix for telnet test runner
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-10-22 09:38:38 -04:00
1 parent 388cad36be
commit 112bad5d42
15 files changed
+130 -88

No files matched your search

+5 -4
View File
@@ -10,6 +10,7 @@ import {
isBrsFile,
} from 'brighterscript';
import { existsSync } from 'fs-extra';
import path from 'path';
export class ImportValidationPlugin implements CompilerPlugin {
public name = 'ImportValidationPlugin';
@@ -33,13 +34,13 @@ export class ImportValidationPlugin implements CompilerPlugin {
}
generateXmlComponent(file: BscFile) {
const path = file.pkgPath;
const name = path.split('/').pop().replace('.bs', '') + `TestComponent${path.length}`;
const pkgPath = file.pkgPath;
const name = path.basename(pkgPath, '.bs') + `TestComponent${pkgPath.length}`;
const content = `<component name="${name}" extends="Node">
<script type="text/brightscript" uri="pkg:/${file.pkgPath}" />
<script type="text/brightscript" uri="pkg:/${pkgPath}" />
</component>`
file.program.setFile(`${path}.TestComponent.xml`, content);
file.program.setFile(`${pkgPath}.TestComponent.xml`, content);
}
}