rook-cli 1.3.11 → 1.3.12
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 +1 -1
- package/src/mcp/server.js +3 -2
- package/src/utils/logger.js +1 -1
package/package.json
CHANGED
package/src/mcp/server.js
CHANGED
|
@@ -45,6 +45,7 @@ import { FileMapper } from '../filesystem/FileMapper.js';
|
|
|
45
45
|
import { ConflictResolver } from '../filesystem/ConflictResolver.js';
|
|
46
46
|
import { FrameworkInstaller } from '../services/FrameworkInstaller.js';
|
|
47
47
|
import { generateNames } from '../utils/stringUtils.js';
|
|
48
|
+
import { REMOTE_PATHS } from '../config/constants.js';
|
|
48
49
|
|
|
49
50
|
import path from 'path';
|
|
50
51
|
import os from 'os';
|
|
@@ -206,7 +207,7 @@ async function handleInstallComponent(args) {
|
|
|
206
207
|
|
|
207
208
|
// Instala cada componente do manifesto
|
|
208
209
|
for (const nomeComponente of kit.componentes) {
|
|
209
|
-
const copiados = await baixarEDistribuir(
|
|
210
|
+
const copiados = await baixarEDistribuir(`${REMOTE_PATHS.COMPONENTS}/${nomeComponente}`, diretorioAtual);
|
|
210
211
|
totalArquivos += copiados;
|
|
211
212
|
totalComponentes++;
|
|
212
213
|
}
|
|
@@ -229,7 +230,7 @@ async function handleInstallComponent(args) {
|
|
|
229
230
|
|
|
230
231
|
} else {
|
|
231
232
|
// --- Instalação de Componente Individual ---
|
|
232
|
-
const caminhoRemoto =
|
|
233
|
+
const caminhoRemoto = `${REMOTE_PATHS.COMPONENTS}/${name}`;
|
|
233
234
|
const copiados = await baixarEDistribuir(caminhoRemoto, diretorioAtual);
|
|
234
235
|
|
|
235
236
|
return {
|
package/src/utils/logger.js
CHANGED
|
@@ -59,7 +59,7 @@ export class Logger {
|
|
|
59
59
|
console.log(bold(white(' ██║ ██║╚██████╔╝╚██████╔╝██║ ██╗')));
|
|
60
60
|
console.log(bold(white(' ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝')));
|
|
61
61
|
console.log('');
|
|
62
|
-
console.log(dim(' v1.3.
|
|
62
|
+
console.log(dim(' v1.3.12 — Shopify Component Tool'));
|
|
63
63
|
console.log('');
|
|
64
64
|
}
|
|
65
65
|
|