slicejs-cli 1.0.55 → 1.0.56

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.
@@ -66,7 +66,8 @@ const getComponents = () => {
66
66
  return Object.fromEntries(allComponents);
67
67
  };
68
68
 
69
- // Obtener componentes dinámicamente
69
+ function listComponents(){
70
+ // Obtener componentes dinámicamente
70
71
  const components = getComponents();
71
72
 
72
73
  // Ruta donde se generará components.js
@@ -76,3 +77,8 @@ const outputPath = path.join(__dirname, '../../../../Slice/Components/components
76
77
  fs.writeFileSync(outputPath, `const components = ${JSON.stringify(components, null, 2)}; export default components;`);
77
78
 
78
79
  Print.success('Lista de componentes actualizada dinámicamente');
80
+ }
81
+
82
+ export default listComponents;
83
+
84
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-cli",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "Command client for developing web applications with Slice.js framework",
5
5
  "main": "client.js",
6
6
  "scripts": {