Add capacitorjs runtime

This commit is contained in:
olcxja 2026-05-03 17:09:55 +02:00
commit f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions

22
node_modules/@capacitor/assets/dist/util/subprocess.js generated vendored Normal file
View file

@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runCommand = void 0;
const tslib_1 = require("tslib");
const utils_subprocess_1 = require("@ionic/utils-subprocess");
const colors_1 = (0, tslib_1.__importDefault)(require("../colors"));
async function runCommand(command, args, options = {}) {
console.log(colors_1.default.strong(`> ${command} ${args.join(' ')}`));
const p = new utils_subprocess_1.Subprocess(command, args, options);
try {
// return await p.output();
return await p.run();
}
catch (e) {
if (e instanceof utils_subprocess_1.SubprocessError) {
// old behavior of just throwing the stdout/stderr strings
throw e.output ? e.output : e.code ? e.code : e.error ? e.error.message : 'Unknown error';
}
throw e;
}
}
exports.runCommand = runCommand;