@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 +1 -1
- package/package.json +1 -1
- package/src/cli/commands/init.js +5 -1
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.
|
|
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
package/src/cli/commands/init.js
CHANGED
|
@@ -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
|
|