wip: add scrcpy module

This commit is contained in:
Simon Chan 2021-10-18 09:34:45 +08:00
parent 20b914fe6f
commit c02dea23e8
31 changed files with 2678 additions and 10 deletions

View file

@ -42,7 +42,7 @@ function _getRushVersion() {
console.log(`Using Rush version from environment variable ${RUSH_PREVIEW_VERSION}=${rushPreviewVersion}`);
return rushPreviewVersion;
}
const rushJsonFolder = install_run_1.findRushJsonFolder();
const rushJsonFolder = (0, install_run_1.findRushJsonFolder)();
const rushJsonPath = path.join(rushJsonFolder, install_run_1.RUSH_JSON_FILENAME);
try {
const rushJsonContents = fs.readFileSync(rushJsonPath, 'utf-8');
@ -76,10 +76,10 @@ function _run() {
}
process.exit(1);
}
install_run_1.runWithErrorAndStatusCode(() => {
(0, install_run_1.runWithErrorAndStatusCode)(() => {
const version = _getRushVersion();
console.log(`The rush.json configuration requests Rush version ${version}`);
return install_run_1.installAndRun(PACKAGE_NAME, version, bin, packageBinArgs);
return (0, install_run_1.installAndRun)(PACKAGE_NAME, version, bin, packageBinArgs);
});
}
_run();