@codemoreira/esad 1.4.6-16 → 1.4.6-18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemoreira/esad",
3
- "version": "1.4.6-16",
3
+ "version": "1.4.6-18",
4
4
  "description": "Easy Super App Development - Zero-Config CLI and DevTools for React Native Module Federation",
5
5
  "main": "src/plugin/index.js",
6
6
  "types": "./src/plugin/index.d.ts",
@@ -54,4 +54,4 @@
54
54
  "@types/react": "^19.2.14",
55
55
  "@types/react-native": "^0.72.8"
56
56
  }
57
- }
57
+ }
@@ -122,10 +122,10 @@ module.exports = async (subcommand) => {
122
122
  // 6. Launch Native App
123
123
  if (choice === 'a') {
124
124
  console.log(`🤖 Compiling and launching on Android...`);
125
- await runProcess('npx', ['expo', 'run:android', '--no-bundler'], cwd);
125
+ await runProcess('npx', ['react-native', 'run-android', '--no-packager'], cwd);
126
126
  } else if (choice === 'i') {
127
127
  console.log(`🍎 Compiling and launching on iOS...`);
128
- await runProcess('npx', ['expo', 'run:ios', '--no-bundler'], cwd);
128
+ await runProcess('npx', ['react-native', 'run-ios', '--no-packager'], cwd);
129
129
  } else if (choice === 'b') {
130
130
  if (portBusy) {
131
131
  console.log(`✨ Bundler is already active. You can launch manual native runs.`);
@@ -139,9 +139,9 @@ module.exports = async (subcommand) => {
139
139
  // Other subcommands (android, ios directly)
140
140
  try {
141
141
  if (subcommand === 'android') {
142
- await runProcess('npx', ['expo', 'run:android', '--no-bundler'], cwd);
142
+ await runProcess('npx', ['react-native', 'run-android', '--no-packager'], cwd);
143
143
  } else if (subcommand === 'ios') {
144
- await runProcess('npx', ['expo', 'run:ios', '--no-bundler'], cwd);
144
+ await runProcess('npx', ['react-native', 'run-ios', '--no-packager'], cwd);
145
145
  }
146
146
  } catch (err) {
147
147
  console.error(`❌ Error running host command: ${err.message}`);
@@ -57,15 +57,14 @@ function withESAD(env, options) {
57
57
  {
58
58
  test: /\.[cm]?[jt]sx?$/,
59
59
  include: [
60
- /node_modules[\\/]react-native/,
61
- /node_modules[\\/]@react-native/,
60
+ /node_modules[\\/]react-native[\\/]/,
61
+ /node_modules[\\/]@react-native[\\/]/,
62
62
  ],
63
- type: 'javascript/auto',
64
63
  use: {
65
- loader: '@callstack/repack/babel-swc-loader',
64
+ loader: 'babel-loader',
66
65
  options: {
67
- sourceMaps: true,
68
- parallel: true,
66
+ presets: ['babel-preset-expo'],
67
+ caller: { name: 'repack' },
69
68
  },
70
69
  },
71
70
  },