@codemoreira/esad 1.3.0 → 1.3.1

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.3.0",
3
+ "version": "1.3.1",
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",
@@ -14,17 +14,17 @@ module.exports = async (moduleName) => {
14
14
 
15
15
  const { projectName } = configObj.data;
16
16
  const isPrefixed = moduleName.startsWith(`${projectName}-`);
17
- const finalModuleName = isPrefixed ? moduleName : `${projectName}-\${moduleName}`;
18
-
17
+ const finalModuleName = isPrefixed ? moduleName : `${projectName}-${moduleName}`;
18
+
19
19
  const workspaceDir = path.dirname(configObj.path);
20
20
  const targetDir = path.join(workspaceDir, finalModuleName);
21
21
 
22
22
  console.log(`\nšŸ“¦ Creating federated mini-app: ${finalModuleName}...\n`);
23
-
23
+
24
24
  try {
25
25
  // 1. Clone Template instead of react-native init
26
26
  await cloneTemplate(templatesConfig.module, targetDir);
27
-
27
+
28
28
  // 2. Rename Project
29
29
  await renameProject(targetDir, finalModuleName);
30
30