@tamer4lynx/cli 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,11 +9,9 @@ process.on("warning", (w) => {
|
|
|
9
9
|
// index.ts
|
|
10
10
|
import fs24 from "fs";
|
|
11
11
|
import path25 from "path";
|
|
12
|
+
import { fileURLToPath } from "url";
|
|
12
13
|
import { program } from "commander";
|
|
13
14
|
|
|
14
|
-
// package.json
|
|
15
|
-
var version = "0.0.11";
|
|
16
|
-
|
|
17
15
|
// src/android/create.ts
|
|
18
16
|
import fs4 from "fs";
|
|
19
17
|
import path4 from "path";
|
|
@@ -3522,7 +3520,6 @@ function getDevViewControllerSwift() {
|
|
|
3522
3520
|
import Lynx
|
|
3523
3521
|
import tamerdevclient
|
|
3524
3522
|
import tamerinsets
|
|
3525
|
-
import tamersystemui
|
|
3526
3523
|
|
|
3527
3524
|
class ViewController: UIViewController {
|
|
3528
3525
|
private var lynxView: LynxView?
|
|
@@ -3552,7 +3549,7 @@ class ViewController: UIViewController {
|
|
|
3552
3549
|
TamerInsetsModule.reRequestInsets()
|
|
3553
3550
|
}
|
|
3554
3551
|
|
|
3555
|
-
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
3552
|
+
override var preferredStatusBarStyle: UIStatusBarStyle { TamerPreferredStatusBar.style }
|
|
3556
3553
|
|
|
3557
3554
|
private func setupLynxView() {
|
|
3558
3555
|
let size = fullscreenBounds().size
|
|
@@ -4198,6 +4195,7 @@ $1`
|
|
|
4198
4195
|
} else {
|
|
4199
4196
|
console.log("\u2139\uFE0F No Tamer4Lynx native packages found.");
|
|
4200
4197
|
}
|
|
4198
|
+
syncHost_default();
|
|
4201
4199
|
updatePodfile(packages);
|
|
4202
4200
|
ensureXElementPod();
|
|
4203
4201
|
ensureLynxPatchInPodfile();
|
|
@@ -5711,6 +5709,14 @@ function add(packages = []) {
|
|
|
5711
5709
|
}
|
|
5712
5710
|
|
|
5713
5711
|
// index.ts
|
|
5712
|
+
function readCliVersion() {
|
|
5713
|
+
const root = path25.dirname(fileURLToPath(import.meta.url));
|
|
5714
|
+
const here = path25.join(root, "package.json");
|
|
5715
|
+
const parent = path25.join(root, "..", "package.json");
|
|
5716
|
+
const pkgPath = fs24.existsSync(here) ? here : parent;
|
|
5717
|
+
return JSON.parse(fs24.readFileSync(pkgPath, "utf8")).version;
|
|
5718
|
+
}
|
|
5719
|
+
var version = readCliVersion();
|
|
5714
5720
|
function validateDebugRelease(debug, release) {
|
|
5715
5721
|
if (debug && release) {
|
|
5716
5722
|
console.error("Cannot use --debug and --release together.");
|