@expo/build-tools 21.5.0 → 21.5.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.
@@ -1,6 +1,7 @@
1
1
  import { type bunyan } from '@expo/logger';
2
2
  import { BuildFunction } from '@expo/steps';
3
3
  import { type CustomBuildContext } from '../../customBuildContext';
4
+ export declare const DEFAULT_AGENT_DEVICE_VERSION = "0.20.3";
4
5
  export declare function createStartAgentDeviceRemoteSessionBuildFunction(ctx: CustomBuildContext): BuildFunction;
5
6
  export declare function stopAgentDeviceEventCollectionSafelyAsync({ eventCollection, deviceRunSessionId, logger, }: {
6
7
  eventCollection: {
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DEFAULT_AGENT_DEVICE_VERSION = void 0;
6
7
  exports.createStartAgentDeviceRemoteSessionBuildFunction = createStartAgentDeviceRemoteSessionBuildFunction;
7
8
  exports.stopAgentDeviceEventCollectionSafelyAsync = stopAgentDeviceEventCollectionSafelyAsync;
8
9
  const eas_build_job_1 = require("@expo/eas-build-job");
@@ -16,6 +17,7 @@ const agentDeviceArtifacts_1 = require("../utils/agentDeviceArtifacts");
16
17
  const agentDeviceEvents_1 = require("../utils/agentDeviceEvents");
17
18
  const remoteDeviceRunSession_1 = require("../utils/remoteDeviceRunSession");
18
19
  const AGENT_DEVICE_PACKAGE_NAME = 'agent-device';
20
+ exports.DEFAULT_AGENT_DEVICE_VERSION = '0.20.3';
19
21
  const AGENT_DEVICE_REPO_URL = 'https://github.com/callstack/agent-device.git';
20
22
  const SRC_DIR = '/tmp/agent-device-src';
21
23
  const AGENT_DEVICE_STATE_DIR = node_path_1.default.join(node_os_1.default.homedir(), '.agent-device');
@@ -46,9 +48,9 @@ function createStartAgentDeviceRemoteSessionBuildFunction(ctx) {
46
48
  const deviceRunSessionId = (0, remoteDeviceRunSession_1.getDeviceRunSessionIdOrThrow)(env);
47
49
  const ngrokTunnelDomain = (0, remoteDeviceRunSession_1.getNgrokTunnelDomainOrThrow)(env);
48
50
  const ngrokAuthtoken = (0, remoteDeviceRunSession_1.getNgrokAuthtokenOrThrow)(env);
49
- const packageVersion = inputs.package_version.value;
51
+ const packageVersion = inputs.package_version.value ?? exports.DEFAULT_AGENT_DEVICE_VERSION;
50
52
  const { runtimePlatform } = global;
51
- logger.info(`Starting agent-device remote session (version: ${packageVersion ?? 'latest'}, runtime: ${runtimePlatform}).`);
53
+ logger.info(`Starting agent-device remote session (version: ${packageVersion}, runtime: ${runtimePlatform}).`);
52
54
  if (runtimePlatform === steps_1.BuildRuntimePlatform.DARWIN) {
53
55
  await (0, remoteDeviceRunSession_1.selectXcodeDeveloperDirectoryAsync)({ env, logger });
54
56
  }
@@ -172,7 +174,7 @@ async function startAgentDeviceDaemonAsync({ packageVersion, env, logger, }) {
172
174
  },
173
175
  extras: {
174
176
  packageSpec,
175
- packageVersion: packageVersion ?? 'latest',
177
+ packageVersion,
176
178
  bunVersion,
177
179
  bunInstallConfigured: Boolean(env.BUN_INSTALL?.trim()),
178
180
  },
@@ -182,9 +184,7 @@ async function startAgentDeviceDaemonAsync({ packageVersion, env, logger, }) {
182
184
  }
183
185
  }
184
186
  async function startAgentDeviceDaemonFromGitAsync({ packageVersion, env, logger, }) {
185
- logger.info(packageVersion
186
- ? `Cloning agent-device @ v${packageVersion} into ${SRC_DIR}.`
187
- : `Cloning agent-device (latest) into ${SRC_DIR}.`);
187
+ logger.info(`Cloning agent-device @ v${packageVersion} into ${SRC_DIR}.`);
188
188
  await cloneAgentDeviceAsync({ packageVersion, env, logger });
189
189
  logger.info('Installing agent-device dependencies.');
190
190
  await (0, turtle_spawn_1.default)('bun', ['install', '--production'], {
@@ -201,7 +201,7 @@ async function startAgentDeviceDaemonFromGitAsync({ packageVersion, env, logger,
201
201
  });
202
202
  }
203
203
  async function cloneAgentDeviceAsync({ packageVersion, env, logger, }) {
204
- const branchArgs = packageVersion ? ['--branch', `v${packageVersion}`] : [];
204
+ const branchArgs = ['--branch', `v${packageVersion}`];
205
205
  await (0, turtle_spawn_1.default)('git', ['clone', '--depth', '1', ...branchArgs, AGENT_DEVICE_REPO_URL, SRC_DIR], {
206
206
  env,
207
207
  logger,
@@ -233,7 +233,7 @@ async function getBunVersionForDiagnosticsAsync(env) {
233
233
  }
234
234
  }
235
235
  function createAgentDevicePackageSpec(packageVersion) {
236
- const versionSpec = packageVersion ? packageVersion.replace(/^v(?=\d)/, '') : 'latest';
236
+ const versionSpec = packageVersion.replace(/^v(?=\d)/, '');
237
237
  return `${AGENT_DEVICE_PACKAGE_NAME}@${versionSpec}`;
238
238
  }
239
239
  function getGlobalAgentDeviceDaemonPath(env) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/build-tools",
3
- "version": "21.5.0",
3
+ "version": "21.5.1",
4
4
  "bugs": "https://github.com/expo/eas-cli/issues",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Expo <support@expo.io>",
@@ -100,5 +100,5 @@
100
100
  "typescript": "^5.5.4",
101
101
  "uuid": "^9.0.1"
102
102
  },
103
- "gitHead": "b27fe84a1ed87c96bebc2b341817bb520989b186"
103
+ "gitHead": "7d7ebb27f6a9c9fccef53e6203cdeb59c7aa4ba0"
104
104
  }