slicejs-cli 1.0.55 → 1.0.57
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
|
-
|
|
69
|
+
function listComponentsReal(){
|
|
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 listComponentsReal;
|
|
83
|
+
|
|
84
|
+
|