@gfean/react-native-bundle-drop 0.1.38 → 0.1.39

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/lib/CLI/cli.js +6 -6
  2. package/package.json +1 -1
package/lib/CLI/cli.js CHANGED
@@ -86,20 +86,20 @@ program
86
86
  const organizations = data.organizations || [];
87
87
  const downloadApiKey = data.downloadApiKey || '';
88
88
  //eslint-disable-next-line
89
- require('../CLI/scripts/init-config').initConfig({
89
+ await require('../CLI/scripts/init-config').initConfig({
90
90
  serverUrl: process.env.BUNDLE_DROP_SERVER_URL?.replace(/\/$/, '') || 'https://bundle-drop-backend.onrender.com',
91
91
  projects,
92
92
  organizations,
93
93
  downloadApiKey,
94
94
  });
95
95
  // Offer to set up Metro alias for bundle.drop.config.js resolution
96
- const { runMetro } = await (0, prompts_1.default)({
96
+ const metroAnswer = await (0, prompts_1.default)({
97
97
  type: 'confirm',
98
98
  name: 'runMetro',
99
99
  message: 'Also add the Metro alias for bundle.drop.config.js (recommended)?',
100
100
  initial: true,
101
101
  });
102
- if (runMetro) {
102
+ if (metroAnswer.runMetro) {
103
103
  try {
104
104
  //eslint-disable-next-line
105
105
  await require('../CLI/scripts/init-metro-config').initMetroConfig();
@@ -108,14 +108,14 @@ program
108
108
  console.log(`⚠️ Failed to initialize Metro config; please refer to manual setup instructions. (${err?.message || err})`);
109
109
  }
110
110
  }
111
- // Offer to patch native entrypoints
112
- const { runNative } = await (0, prompts_1.default)({
111
+ // Offer to patch native entrypoints (after Metro prompt finishes)
112
+ const nativeAnswer = await (0, prompts_1.default)({
113
113
  type: 'confirm',
114
114
  name: 'runNative',
115
115
  message: 'Patch native entrypoints (MainApplication/AppDelegate) to prefer OTA? (Standard RN setups only)',
116
116
  initial: false,
117
117
  });
118
- if (runNative) {
118
+ if (nativeAnswer.runNative) {
119
119
  try {
120
120
  //eslint-disable-next-line
121
121
  await require('../CLI/scripts/init-native-config').initNativeConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gfean/react-native-bundle-drop",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "react native ota by gFean",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",