Created
February 16, 2021 13:18
-
-
Save hypest/a76e472f22c1bc23793e9f83b252aa97 to your computer and use it in GitHub Desktop.
Fallback to text JS for gutenberg-mobile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json | |
index bcb2ee95f9..69adc453fa 100644 | |
--- a/packages/react-native-editor/package.json | |
+++ b/packages/react-native-editor/package.json | |
@@ -87,7 +87,7 @@ | |
"postrn-bundle": "cd ../.. && patch-package --reverse --patch-dir packages/react-native-editor/metro-patch", | |
"prebundle": "npm run i18n-cache:force", | |
"bundle": "npm run bundle:android && npm run bundle:ios", | |
- "bundle:android": "mkdir -p bundle/android && npm run rn-bundle -- --platform android --dev false --entry-file index.js --assets-dest bundle/android --bundle-output bundle/android/App.text.js --sourcemap-output bundle/android/App.text.js.map && ./gutenberg/node_modules/hermes-engine/`node -e \"const platform=require('os').platform();console.log(platform === 'darwin' ? 'osx-bin' : (platform === 'linux' ? 'linux64-bin' : (platform === 'win32' ? 'win64-bin' : 'unsupported-os')));\"`/hermes -emit-binary -O -out bundle/android/App.js bundle/android/App.text.js -output-source-map", | |
+ "bundle:android": "mkdir -p bundle/android && npm run rn-bundle -- --platform android --dev false --entry-file index.js --assets-dest bundle/android --bundle-output bundle/android/App.js --sourcemap-output bundle/android/App.js.map", | |
"bundle:ios": "mkdir -p bundle/ios && npm run rn-bundle -- --platform ios --dev false --entry-file index.js --assets-dest bundle/ios --bundle-output bundle/ios/App.js --sourcemap-output bundle/ios/App.js.map", | |
"i18n-cache": "node i18n-cache/index.js", | |
"i18n-cache:force": "cross-env REFRESH_I18N_CACHE=1 node i18n-cache/index.js", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment