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:
1 parent
388cad36be
commit
112bad5d42
15 files changed
+130
-88
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user