@stim-cli/expo-build-cache 1.14.0 → 1.15.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 +5 -0
- package/dist/index.mjs +10 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,6 +38,11 @@ per-ABI builds `stim android` makes by default; a universal debug build that
|
|
|
38
38
|
`stim android` makes with `optimizations.android.targetAbiOnly: false` is not
|
|
39
39
|
shared with Expo runs.
|
|
40
40
|
|
|
41
|
+
An iOS Debug simulator build compiles only this Mac's architecture, so the
|
|
42
|
+
provider keys it on `arm64` or `x86_64`, matching `stim ios`. Other iOS
|
|
43
|
+
configurations and `--device generic` keep the project's architectures and
|
|
44
|
+
their unsuffixed key.
|
|
45
|
+
|
|
41
46
|
The provider works without the `stim` npm package. When Stim is available,
|
|
42
47
|
the provider registers its cache so `stim gc` can report and trim it.
|
|
43
48
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { artifactIn, buildCacheKey, buildCacheRoot, registerCache, resolveArtifact, storeArtifact } from "@stim-cli/core";
|
|
4
|
+
import { artifactIn, buildCacheKey, buildCacheRoot, hostSimulatorArch, registerCache, resolveArtifact, storeArtifact } from "@stim-cli/core";
|
|
5
5
|
import { execFileSync } from "node:child_process";
|
|
6
6
|
//#region index.ts
|
|
7
7
|
let registeredDir = null;
|
|
@@ -64,6 +64,15 @@ function connectedDeviceAbi() {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
function keyOptions(platform, runOptions = {}) {
|
|
67
|
+
if (platform === "ios") {
|
|
68
|
+
const configuration = runOptions.configuration ?? runOptions.buildConfiguration;
|
|
69
|
+
if (runOptions.arch || runOptions.device === "generic") return runOptions;
|
|
70
|
+
if (configuration && configuration.trim().toLowerCase() !== "debug") return runOptions;
|
|
71
|
+
return {
|
|
72
|
+
...runOptions,
|
|
73
|
+
arch: hostSimulatorArch()
|
|
74
|
+
};
|
|
75
|
+
}
|
|
67
76
|
if (platform !== "android" || runOptions.abi || runOptions.allArch) return runOptions;
|
|
68
77
|
const parts = (runOptions.variant || "debug").split(/(?=[A-Z])/);
|
|
69
78
|
let buildType = parts.pop();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stim-cli/expo-build-cache",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Local Expo build cache provider: installs a cached .app/.apk instead of compiling when no native input changed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@stim-cli/core": "^1.
|
|
27
|
+
"@stim-cli/core": "^1.15.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=22.12.0"
|