slicejs-cli 1.0.39 → 1.0.40
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/client.js +1 -1
- package/commands/init/init.js +4 -3
- package/package.json +1 -1
package/client.js
CHANGED
package/commands/init/init.js
CHANGED
|
@@ -14,8 +14,9 @@ export default async function initializeProject(projectType) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// Directorio de destino en la raíz del proyecto
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const destinationDir = path.join(__dirname, '../../../../Slice');
|
|
18
|
+
const destinationSrc = path.join(__dirname, '../../../../src')
|
|
19
|
+
const srcDir = path.join(__dirname, '../../PROJECT_TEMPLATES/Basic/src')
|
|
19
20
|
|
|
20
21
|
// Verificar si el directorio de destino ya existe
|
|
21
22
|
if (fs.existsSync(destinationDir)) {
|
|
@@ -25,7 +26,7 @@ export default async function initializeProject(projectType) {
|
|
|
25
26
|
|
|
26
27
|
// Copiar el contenido del directorio de origen al directorio de destino
|
|
27
28
|
await fs.copy(sliceDir, destinationDir, { recursive: true });
|
|
28
|
-
await fs.copy(srcDir,
|
|
29
|
+
await fs.copy(srcDir, destinationSrc, { recursive: true });
|
|
29
30
|
|
|
30
31
|
Print.success('Proyecto inicializado correctamente.');
|
|
31
32
|
} catch (error) {
|