@tamagui/native-ci 3.0.0-beta.1216.1 → 3.0.0-beta.1310.1
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/ios-utils.mjs +3 -8
- package/dist/metro.mjs +1 -6
- package/package.json +3 -2
package/dist/ios-utils.mjs
CHANGED
|
@@ -5,11 +5,6 @@ import { $ } from "bun";
|
|
|
5
5
|
import { isCI } from "./runner.mjs";
|
|
6
6
|
import { generateFingerprint } from "./fingerprint.mjs";
|
|
7
7
|
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
9
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
10
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
11
|
-
});
|
|
12
|
-
|
|
13
8
|
function hasBootedSimulator() {
|
|
14
9
|
return !!getBootedSimulatorUDID();
|
|
15
10
|
}
|
|
@@ -148,7 +143,7 @@ function getMaestroBundleId(projectRoot) {
|
|
|
148
143
|
const flowsDir = join(projectRoot, "flows");
|
|
149
144
|
if (existsSync(flowsDir)) {
|
|
150
145
|
try {
|
|
151
|
-
const files =
|
|
146
|
+
const files = require("fs").readdirSync(flowsDir);
|
|
152
147
|
for (const f of files) {
|
|
153
148
|
if (!f.endsWith(".yaml")) continue;
|
|
154
149
|
const content = readFileSync(join(flowsDir, f), "utf-8");
|
|
@@ -165,7 +160,7 @@ function getMaestroBundleId(projectRoot) {
|
|
|
165
160
|
}
|
|
166
161
|
}
|
|
167
162
|
async function installExpoGo(udid) {
|
|
168
|
-
const tmpDir = join(
|
|
163
|
+
const tmpDir = join(require("os").tmpdir(), "expo-go-install");
|
|
169
164
|
const appPath = join(tmpDir, "Expo Go.app");
|
|
170
165
|
if (existsSync(appPath)) {
|
|
171
166
|
console.info(`Installing cached Expo Go on simulator ${udid}...`);
|
|
@@ -175,7 +170,7 @@ async function installExpoGo(udid) {
|
|
|
175
170
|
}
|
|
176
171
|
console.info("Downloading Expo Go...");
|
|
177
172
|
mkdirSync(tmpDir, { recursive: true });
|
|
178
|
-
const { getVersionsAsync } =
|
|
173
|
+
const { getVersionsAsync } = require("@expo/cli/build/src/api/getVersions");
|
|
179
174
|
const versions = await getVersionsAsync();
|
|
180
175
|
const sdkVersions = Object.entries(versions.sdkVersions || {}).filter(([, v]) => v.iosClientUrl).sort(([a], [b]) => b.localeCompare(a, void 0, { numeric: true }));
|
|
181
176
|
const clientUrl = sdkVersions[0]?.[1]?.iosClientUrl;
|
package/dist/metro.mjs
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { execSync } from "node:child_process";
|
|
2
2
|
import { DEFAULT_METRO_WAIT_ATTEMPTS, DEFAULT_METRO_WAIT_INTERVAL_MS, METRO_PORT, METRO_URL } from "./constants.mjs";
|
|
3
3
|
|
|
4
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
7
|
-
});
|
|
8
|
-
|
|
9
4
|
async function waitForMetro(options) {
|
|
10
5
|
const { platform, maxAttempts = DEFAULT_METRO_WAIT_ATTEMPTS, intervalMs = DEFAULT_METRO_WAIT_INTERVAL_MS } = options;
|
|
11
6
|
console.info("Waiting for Metro to start...");
|
|
@@ -43,7 +38,7 @@ async function prewarmBundle(platform) {
|
|
|
43
38
|
}
|
|
44
39
|
function projectUsesDevClient() {
|
|
45
40
|
try {
|
|
46
|
-
const pkg = JSON.parse(
|
|
41
|
+
const pkg = JSON.parse(require("fs").readFileSync("package.json", "utf-8"));
|
|
47
42
|
const deps = {
|
|
48
43
|
...pkg.dependencies,
|
|
49
44
|
...pkg.devDependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/native-ci",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1310.1",
|
|
4
4
|
"description": "Native CI/CD helpers for React Native apps with Expo - fingerprinting, caching, and build optimization",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
"clean:build": "tamagui-build clean:build"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@expo/cli": "^57.0.17",
|
|
44
45
|
"@expo/fingerprint": "~0.20.6"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@tamagui/build": "3.0.0-beta.
|
|
48
|
+
"@tamagui/build": "3.0.0-beta.1310.1",
|
|
48
49
|
"@types/bun": "^1.1.0",
|
|
49
50
|
"@types/node": "^22.1.0"
|
|
50
51
|
},
|