@stim-cli/core 1.0.0-rc.8 → 1.0.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/dist/index.d.mts +4 -0
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -20,8 +20,12 @@ declare const STORE_ROOT_TAG = "stimStoreRoot";
|
|
|
20
20
|
declare function tagSharedStore<T extends object>(store: T, root: string): T;
|
|
21
21
|
declare function sharedStoreRoot(store: unknown): string | null;
|
|
22
22
|
interface BuildRunOptions {
|
|
23
|
+
buildProfile?: string;
|
|
24
|
+
compiler?: string;
|
|
23
25
|
variant?: string;
|
|
26
|
+
abi?: string;
|
|
24
27
|
configuration?: string;
|
|
28
|
+
scheme?: string;
|
|
25
29
|
buildConfiguration?: string;
|
|
26
30
|
isSimulator?: boolean;
|
|
27
31
|
device?: string | boolean | null;
|
package/dist/index.mjs
CHANGED
|
@@ -151,7 +151,11 @@ function buildTarget(options) {
|
|
|
151
151
|
}
|
|
152
152
|
function buildCacheKey(platform, fingerprintHash, options = {}) {
|
|
153
153
|
const opts = options && typeof options === "object" ? options : {};
|
|
154
|
-
|
|
154
|
+
const abi = platform === "android" && typeof opts.abi === "string" ? slug(opts.abi) : "";
|
|
155
|
+
const compiler = typeof opts.compiler === "string" ? slug(opts.compiler) : "";
|
|
156
|
+
const profile = typeof opts.buildProfile === "string" ? slug(opts.buildProfile) : "";
|
|
157
|
+
const scheme = platform === "ios" && typeof opts.scheme === "string" && opts.scheme ? createHash("sha256").update(opts.scheme).digest("hex") : "";
|
|
158
|
+
return `${fingerprintHash}-${buildVariant(platform, opts)}-${buildTarget(opts)}${abi ? `-${abi}` : ""}${compiler ? `-${compiler}` : ""}${profile ? `-${profile}` : ""}${scheme ? `-scheme-${scheme}` : ""}`;
|
|
155
159
|
}
|
|
156
160
|
const METRO_NAMED_CACHE_LAYOUT = "metro-named-v1";
|
|
157
161
|
function cacheManifestLockPath(file) {
|