@codemoreira/esad 1.1.2 → 1.1.3

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/bin/esad.js CHANGED
@@ -10,7 +10,7 @@ const deployCommand = require('../src/cli/commands/deploy');
10
10
  const devCommand = require('../src/cli/commands/dev');
11
11
 
12
12
  program
13
- .version('1.1.2')
13
+ .version('1.1.3')
14
14
  .description('esad - Easy Super App Development Toolkit');
15
15
 
16
16
  // --- COMMMAND: esad init ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemoreira/esad",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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
  "exports": {
@@ -45,6 +45,9 @@ module.exports = async (projectName) => {
45
45
  await runProcess('npx', ['create-expo-app', hostName, '--template', 'blank'], workspaceDir);
46
46
 
47
47
  console.log(`\nšŸ“¦ Installing ESAD and UI dependencies into host...`);
48
+ const hostPkg = fs.readJsonSync(path.join(hostDir, 'package.json'));
49
+ const reactVersion = hostPkg.dependencies.react;
50
+
48
51
  const deps = [
49
52
  '@codemoreira/esad',
50
53
  'nativewind',
@@ -55,7 +58,8 @@ module.exports = async (projectName) => {
55
58
  'react-native-reanimated',
56
59
  'react-native-safe-area-context',
57
60
  'react-native-screens',
58
- 'expo-router'
61
+ 'expo-router',
62
+ `react-dom@${reactVersion}`
59
63
  ];
60
64
  await runProcess('npm', ['install', ...deps], hostDir);
61
65