eas-build-cache-provider 16.4.0 → 16.30.0

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/README.md CHANGED
@@ -8,16 +8,14 @@ To use the EAS remote build provider plugin, install the `eas-build-cache-provid
8
8
  npm install --save-dev eas-build-cache-provider
9
9
  ```
10
10
 
11
- Then, update your **app.json** to include the `remoteBuildCache` property and its provider under `experiments`:
11
+ Then, update your **app.json** to include the `buildCacheProvider` property and its provider under `experiments`:
12
12
 
13
13
  ```json
14
14
  {
15
15
  "expo": {
16
16
  ...
17
17
  "experiments": {
18
- "remoteBuildCache": {
19
- "provider": "eas-build-cache-provider"
20
- }
18
+ "buildCacheProvider": "eas"
21
19
  }
22
20
  }
23
21
  }
package/build/helpers.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hasDirectDevClientDependency = exports.isDevClientBuild = exports.isSpawnResultError = void 0;
3
+ exports.isSpawnResultError = isSpawnResultError;
4
+ exports.isDevClientBuild = isDevClientBuild;
5
+ exports.hasDirectDevClientDependency = hasDirectDevClientDependency;
4
6
  const config_1 = require("@expo/config");
5
7
  function isSpawnResultError(obj) {
6
8
  return (obj &&
@@ -9,7 +11,6 @@ function isSpawnResultError(obj) {
9
11
  obj.stdout !== undefined &&
10
12
  obj.stderr !== undefined);
11
13
  }
12
- exports.isSpawnResultError = isSpawnResultError;
13
14
  function isDevClientBuild({ runOptions, projectRoot, }) {
14
15
  if (!hasDirectDevClientDependency(projectRoot)) {
15
16
  return false;
@@ -22,9 +23,7 @@ function isDevClientBuild({ runOptions, projectRoot, }) {
22
23
  }
23
24
  return true;
24
25
  }
25
- exports.isDevClientBuild = isDevClientBuild;
26
26
  function hasDirectDevClientDependency(projectRoot) {
27
27
  const { dependencies = {}, devDependencies = {} } = (0, config_1.getPackageJson)(projectRoot);
28
28
  return !!dependencies['expo-dev-client'] || !!devDependencies['expo-dev-client'];
29
29
  }
30
- exports.hasDirectDevClientDependency = hasDirectDevClientDependency;
package/build/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { RemoteBuildCachePlugin } from '@expo/config';
2
- declare const EASRemoteBuildCacheProvider: RemoteBuildCachePlugin;
3
- export default EASRemoteBuildCacheProvider;
1
+ import { BuildCacheProviderPlugin } from '@expo/config';
2
+ declare const EASBuildCacheProvider: BuildCacheProviderPlugin;
3
+ export default EASBuildCacheProvider;
package/build/index.js CHANGED
@@ -7,7 +7,7 @@ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
7
7
  const path_1 = tslib_1.__importDefault(require("path"));
8
8
  const helpers_1 = require("./helpers");
9
9
  const log_1 = tslib_1.__importDefault(require("./log"));
10
- async function resolveRemoteBuildCacheAsync({ projectRoot, platform, fingerprintHash, runOptions, }) {
10
+ async function resolveBuildCacheAsync({ projectRoot, platform, fingerprintHash, runOptions, }) {
11
11
  const easJsonPath = path_1.default.join(projectRoot, 'eas.json');
12
12
  if (!(await fs_extra_1.default.exists(easJsonPath))) {
13
13
  log_1.default.debug('eas.json not found, skip checking for remote builds');
@@ -37,19 +37,19 @@ async function resolveRemoteBuildCacheAsync({ projectRoot, platform, fingerprint
37
37
  log_1.default.debug('eas-cli error:', error);
38
38
  // @TODO(2025-04-11): remove this in a future release
39
39
  if ((0, helpers_1.isSpawnResultError)(error) && error.stderr.includes('command build:download not found')) {
40
- log_1.default.warn(`To take advantage of remote build cache, upgrade your eas-cli installation to latest.`);
40
+ log_1.default.warn(`To take advantage of EAS build cache provider, upgrade your eas-cli installation to latest.`);
41
41
  }
42
42
  return null;
43
43
  }
44
44
  }
45
- async function uploadEASRemoteBuildCacheAsync({ projectRoot, platform, fingerprintHash, buildPath, }) {
45
+ async function uploadBuildCacheAsync({ projectRoot, platform, fingerprintHash, buildPath, }) {
46
46
  const easJsonPath = path_1.default.join(projectRoot, 'eas.json');
47
47
  if (!(await fs_extra_1.default.exists(easJsonPath))) {
48
48
  log_1.default.debug('eas.json not found, skip uploading builds');
49
49
  return null;
50
50
  }
51
51
  try {
52
- log_1.default.log((0, chalk_1.default) `{whiteBright \u203A} {bold Uploading build to remote cache}`);
52
+ log_1.default.log((0, chalk_1.default) `{whiteBright \u203A} {bold Uploading build to EAS}`);
53
53
  const results = await (0, spawn_async_1.default)('npx', [
54
54
  'eas-cli',
55
55
  'upload',
@@ -90,9 +90,9 @@ async function calculateEASFingerprintHashAsync({ projectRoot, platform, }) {
90
90
  }
91
91
  return null;
92
92
  }
93
- const EASRemoteBuildCacheProvider = {
94
- resolveRemoteBuildCache: resolveRemoteBuildCacheAsync,
95
- uploadRemoteBuildCache: uploadEASRemoteBuildCacheAsync,
93
+ const EASBuildCacheProvider = {
94
+ resolveBuildCache: resolveBuildCacheAsync,
95
+ uploadBuildCache: uploadBuildCacheAsync,
96
96
  calculateFingerprintHash: calculateEASFingerprintHashAsync,
97
97
  };
98
- exports.default = EASRemoteBuildCacheProvider;
98
+ exports.default = EASBuildCacheProvider;
package/build/log.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.learnMore = exports.link = void 0;
3
+ exports.link = link;
4
+ exports.learnMore = learnMore;
4
5
  const tslib_1 = require("tslib");
5
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
7
  const figures_1 = tslib_1.__importDefault(require("figures"));
@@ -87,7 +88,6 @@ function link(url, { text = url, fallback, dim = true } = {}) {
87
88
  });
88
89
  return dim ? chalk_1.default.dim(output) : output;
89
90
  }
90
- exports.link = link;
91
91
  /**
92
92
  * Provide a consistent "Learn more" link experience.
93
93
  * Format links as dim (unless disabled) with an underline.
@@ -97,4 +97,3 @@ exports.link = link;
97
97
  function learnMore(url, { learnMoreMessage: maybeLearnMoreMessage, dim = true, } = {}) {
98
98
  return link(url, { text: maybeLearnMoreMessage ?? 'Learn more', dim });
99
99
  }
100
- exports.learnMore = learnMore;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "eas-build-cache-provider",
3
3
  "description": "A build cache provider plugin for the Expo CLI",
4
- "version": "16.4.0",
4
+ "version": "16.30.0",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bugs": "https://github.com/expo/eas-cli/issues",
7
7
  "dependencies": {
8
8
  "@babel/code-frame": "7.23.5",
9
- "@expo/config": "11.0.6",
9
+ "@expo/config": "11.0.10",
10
10
  "@expo/spawn-async": "^1.7.2",
11
11
  "chalk": "4.1.2",
12
12
  "figures": "3.2.0",
@@ -24,7 +24,7 @@
24
24
  "@types/getenv": "^1.0.0",
25
25
  "memfs": "3.4.13",
26
26
  "rimraf": "3.0.2",
27
- "typescript": "5.3.3"
27
+ "typescript": "5.5.4"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=18.0.0"
@@ -33,7 +33,11 @@
33
33
  "license": "MIT",
34
34
  "main": "build/index.js",
35
35
  "types": "build/index.d.ts",
36
- "repository": "expo/eas-cli",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/expo/eas-cli.git",
39
+ "directory": "packages/eas-build-cache-provider"
40
+ },
37
41
  "scripts": {
38
42
  "build": "tsc --project tsconfig.build.json",
39
43
  "build-allow-unused": "tsc --project tsconfig.allowUnused.json",
@@ -51,9 +55,5 @@
51
55
  "publishConfig": {
52
56
  "access": "public"
53
57
  },
54
- "volta": {
55
- "node": "20.11.0",
56
- "yarn": "1.22.21"
57
- },
58
- "gitHead": "da4c41b9b715ff89d241deea1e24b3e179798620"
58
+ "gitHead": "1c317026539827ed6f95827e1f6990bd080a6920"
59
59
  }