esoftplay 0.0.268-04cfb21 → 0.0.268-f404b7e

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.
Files changed (2) hide show
  1. package/bin/build.js +14 -0
  2. package/package.json +1 -1
package/bin/build.js CHANGED
@@ -6,6 +6,7 @@ const DIR = "../../"
6
6
  const packjson = DIR + "package.json"
7
7
  const appjson = DIR + "app.json"
8
8
  const easjson = DIR + "eas.json"
9
+ const metroconfigjs = DIR + "metro.config.js"
9
10
  const confjson = DIR + "config.json"
10
11
  const conflivejson = DIR + "config.live.json"
11
12
  const gitignore = DIR + ".gitignore"
@@ -217,6 +218,19 @@ if (fs.existsSync(packjson)) {
217
218
 
218
219
  writeFileSyncWithLog(easjson, easconfg);
219
220
 
221
+
222
+ const metroConfig = `// Learn more https://docs.expo.io/guides/customizing-metro
223
+ const { getDefaultConfig } = require('expo/metro-config');
224
+ const { wrapWithReanimatedMetroConfig } = require('react-native-reanimated/metro-config');
225
+
226
+ /** @type {import('expo/metro-config').MetroConfig} */
227
+ const config = getDefaultConfig(__dirname);
228
+
229
+ module.exports = wrapWithReanimatedMetroConfig(config);
230
+ `;
231
+ writeFileSyncWithLog(metroconfigjs, metroConfig)
232
+
233
+
220
234
  const babelconf = `module.exports = function (api) {
221
235
  api.cache(true);
222
236
  let plugins = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.268-04cfb21",
3
+ "version": "0.0.268-f404b7e",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",