@webtypen/webframez-core 0.3.92 → 0.3.93
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/build-cache.js +7 -3
- package/package.json +1 -1
package/build-cache.js
CHANGED
|
@@ -17,9 +17,13 @@ function configureMetroCache(config, env = process.env) {
|
|
|
17
17
|
});
|
|
18
18
|
const stores = config.cacheStores;
|
|
19
19
|
config.cacheStores = typeof stores === "function" ? cache => relocate(stores(cache)) : relocate(stores || []);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
// Some Metro releases accept these options at runtime but reject them in
|
|
21
|
+
// their schema. Only extend a field exposed by the caller/default config.
|
|
22
|
+
const field = "fileMapCacheDirectory" in config ? "fileMapCacheDirectory" : "hasteMapCacheDirectory" in config ? "hasteMapCacheDirectory" : null;
|
|
23
|
+
if (field) {
|
|
24
|
+
config[field] = path.join(root, "file-map");
|
|
25
|
+
fs.mkdirSync(config[field], {recursive:true});
|
|
26
|
+
}
|
|
23
27
|
return config;
|
|
24
28
|
}
|
|
25
29
|
|
package/package.json
CHANGED