forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
40
node_modules/@ionic/utils-terminal/dist/info.js
generated
vendored
Normal file
40
node_modules/@ionic/utils-terminal/dist/info.js
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TERMINAL_INFO = exports.CI_ENVIRONMENT_VARIABLES_DETECTED = exports.CI_ENVIRONMENT_VARIABLES = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const debug_1 = require("debug");
|
||||
const os = tslib_1.__importStar(require("os"));
|
||||
const debug = (0, debug_1.debug)('ionic:utils-terminal:info');
|
||||
/**
|
||||
* These environment variables work for: GitHub Actions, Travis CI, CircleCI,
|
||||
* Gitlab CI, AppVeyor, CodeShip, Jenkins, TeamCity, Bitbucket Pipelines, AWS
|
||||
* CodeBuild
|
||||
*/
|
||||
exports.CI_ENVIRONMENT_VARIABLES = ['CI', 'BUILD_ID', 'BUILD_NUMBER', 'BITBUCKET_COMMIT', 'CODEBUILD_BUILD_ARN', 'GITHUB_ACTIONS'];
|
||||
exports.CI_ENVIRONMENT_VARIABLES_DETECTED = exports.CI_ENVIRONMENT_VARIABLES.filter(v => !!process.env[v]);
|
||||
function getShell() {
|
||||
const { shell } = os.userInfo();
|
||||
if (shell) {
|
||||
return shell;
|
||||
}
|
||||
if (process.env.SHELL) {
|
||||
return process.env.SHELL;
|
||||
}
|
||||
if (process.platform === 'darwin') {
|
||||
return '/bin/bash';
|
||||
}
|
||||
if (process.platform === 'win32') {
|
||||
return process.env.COMSPEC ? process.env.COMSPEC : 'cmd.exe';
|
||||
}
|
||||
return '/bin/sh';
|
||||
}
|
||||
if (exports.CI_ENVIRONMENT_VARIABLES_DETECTED.length > 0) {
|
||||
debug(`Environment variables for CI detected: ${exports.CI_ENVIRONMENT_VARIABLES_DETECTED.join(', ')}`);
|
||||
}
|
||||
exports.TERMINAL_INFO = Object.freeze({
|
||||
ci: exports.CI_ENVIRONMENT_VARIABLES_DETECTED.length > 0,
|
||||
shell: getShell(),
|
||||
tty: Boolean(process.stdin.isTTY && process.stdout.isTTY && process.stderr.isTTY),
|
||||
windows: process.platform === 'win32' || !!(process.env.OSTYPE && /^(msys|cygwin)$/.test(process.env.OSTYPE) ||
|
||||
process.env.MSYSTEM && /^MINGW(32|64)$/.test(process.env.MSYSTEM)),
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue