@stim-cli/core 1.0.0-rc.19 → 1.0.0-rc.20
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 +2 -0
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,8 @@ 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;
|
|
24
26
|
abi?: string;
|
|
25
27
|
configuration?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -152,7 +152,9 @@ function buildTarget(options) {
|
|
|
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
|
-
|
|
155
|
+
const compiler = typeof opts.compiler === "string" ? slug(opts.compiler) : "";
|
|
156
|
+
const profile = typeof opts.buildProfile === "string" ? slug(opts.buildProfile) : "";
|
|
157
|
+
return `${fingerprintHash}-${buildVariant(platform, opts)}-${buildTarget(opts)}${abi ? `-${abi}` : ""}${compiler ? `-${compiler}` : ""}${profile ? `-${profile}` : ""}`;
|
|
156
158
|
}
|
|
157
159
|
const METRO_NAMED_CACHE_LAYOUT = "metro-named-v1";
|
|
158
160
|
function cacheManifestLockPath(file) {
|