From a32f2a04d557edb3a652cab1ca63b68eddb6dcaf Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Tue, 27 Apr 2021 13:29:19 +0200 Subject: [PATCH 1/2] Add prebundle to bundle command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ffc6459e1..6c29e9352e 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "prern-bundle": "patch-package --patch-dir gutenberg/packages/react-native-editor/metro-patch", "rn-bundle": "react-native bundle", "postrn-bundle": "patch-package --reverse --patch-dir gutenberg/packages/react-native-editor/metro-patch", - "bundle": "npm run clean; npm run bundle:js && npm run genstrings", + "bundle": "npm run clean; npm run core prebundle && npm run bundle:js && npm run genstrings", "bundle:js": "npm run bundle:android && npm run bundle:ios", "bundle:android": "npm run bundle:android:text && npm run bundle:android:bytecode", "bundle:android:text": "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", From 95f1429d2124bdfba9496b8114fafda6474d013a Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Tue, 27 Apr 2021 14:07:44 +0200 Subject: [PATCH 2/2] Add prebundle command to Android publish package CI job --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4fe61e84ed..f2a3115424 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -304,7 +304,9 @@ jobs: - npm-install - run: name: Build JavaScript Bundle - command: npm run bundle:android + command: | + npm run core prebundle + npm run bundle:android # The job can take a long time, so let's bump the no_output_timeout # to more than the default 10m no_output_timeout: 20m