@codemoreira/esad 2.0.1-31 → 2.0.1-33

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": "2.0.1-31",
3
+ "version": "2.0.1-33",
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",
@@ -37,15 +37,8 @@
37
37
  "@xmldom/xmldom": "0.9.9"
38
38
  },
39
39
  "dependencies": {
40
- "@babel/core": "^7.20.0",
41
- "@callstack/repack": "^5.2.5",
42
40
  "@callstack/repack-plugin-expo-modules": "^5.2.5",
43
- "@module-federation/enhanced": "^2.4.0",
44
- "@rspack/core": "^1.7.8",
45
- "@swc/core": "^1.7.0",
46
- "@swc/helpers": "^0.5.11",
47
41
  "adm-zip": "^0.5.10",
48
- "babel-preset-expo": "~12.0.0",
49
42
  "chalk": "^4.1.2",
50
43
  "commander": "^11.1.0",
51
44
  "cross-spawn": "^7.0.3",
@@ -56,8 +49,11 @@
56
49
  "process": "^0.11.10"
57
50
  },
58
51
  "devDependencies": {
59
- "@rspack/core": "^1.7.9",
60
- "@types/react": "^19.2.14",
61
- "@types/react-native": "^0.72.8"
52
+ "@babel/core": "^7.25.2",
53
+ "@callstack/repack": "^5.2.5",
54
+ "@module-federation/enhanced": "^2.4.0",
55
+ "@rspack/core": "^1.7.8",
56
+ "babel-preset-expo": "~12.0.0",
57
+ "@types/react": "~18.3.12"
62
58
  }
63
59
  }
@@ -33,6 +33,8 @@ async function renameProject(targetDir, newName) {
33
33
  if (fs.existsSync(appJsonPath)) {
34
34
  const appJson = await fs.readJson(appJsonPath);
35
35
  if (appJson.expo) {
36
+ appJson.name = newName;
37
+ appJson.displayName = newName;
36
38
  appJson.expo.name = newName;
37
39
  appJson.expo.slug = newName;
38
40
  if (appJson.expo.android) {
@@ -18,7 +18,7 @@ function withESAD(env, options) {
18
18
  const pkgPath = path.resolve(dirname, 'package.json');
19
19
  const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
20
20
  const id = options.id.replace(/-/g, '_');
21
-
21
+
22
22
  const sdkPkgPath = path.resolve(__dirname, '..', '..', 'package.json');
23
23
  const sdkPkg = JSON.parse(fs.readFileSync(sdkPkgPath, 'utf8'));
24
24
  const clientPath = path.resolve(__dirname, '..', 'client', 'index.js');
@@ -39,10 +39,7 @@ function withESAD(env, options) {
39
39
  type: 'javascript/auto',
40
40
  use: {
41
41
  loader: '@callstack/repack/babel-swc-loader',
42
- options: {
43
- parallel: true,
44
- hideParallelModeWarning: true,
45
- },
42
+ options: {},
46
43
  },
47
44
  },
48
45
  ...Repack.getAssetTransformRules(),
@@ -54,10 +51,10 @@ function withESAD(env, options) {
54
51
  name: id,
55
52
  filename: `${id}.container.js.bundle`,
56
53
  remotes: options.remotes || {},
57
- ...(options.type === 'module' ? {
54
+ ...(options.type === 'module' ? {
58
55
  exposes: options.exposes || {
59
56
  './Main': options.entry || './index.js'
60
- }
57
+ }
61
58
  } : {}),
62
59
  dts: false,
63
60
  dev: isDev,
@@ -66,12 +63,12 @@ function withESAD(env, options) {
66
63
  'react/jsx-runtime': { singleton: true, eager: true, requiredVersion: pkg.dependencies.react },
67
64
  'react-native': { singleton: true, eager: true, requiredVersion: pkg.dependencies['react-native'] },
68
65
  'react-native-safe-area-context': { singleton: true, eager: true, requiredVersion: pkg.dependencies['react-native-safe-area-context'] },
69
- '@codemoreira/esad/client': {
70
- singleton: true,
66
+ '@codemoreira/esad/client': {
67
+ singleton: true,
71
68
  eager: options.type === 'host',
72
69
  version: sdkPkg.version,
73
70
  requiredVersion: sdkPkg.version,
74
- import: clientPath
71
+ import: clientPath
75
72
  },
76
73
  ...(options.shared || {})
77
74
  }