@orxataguy/tyr 1.0.28 → 1.0.29

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": "@orxataguy/tyr",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "tyr": "./bin/tyr.js"
@@ -76,13 +76,13 @@ async function checkWindowsExecutionPolicy(shell: any, logger: any): Promise<voi
76
76
  const policy = String(output).trim();
77
77
 
78
78
  if (policy === 'Restricted' || policy === 'AllSigned' || policy === 'Undefined') {
79
- logger.warn(`\nExecution Policy actual: ${policy || 'Undefined'}`);
80
- logger.warn('Con esta política, PowerShell puede bloquear la carga de tu perfil (y por tanto las funciones/alias de Tyr).');
81
- logger.info('Para permitirlo, ejecuta en una consola de PowerShell:');
79
+ logger.warn(`\nCurrent Execution Policy: ${policy || 'Undefined'}`);
80
+ logger.warn('With this policy, PowerShell may block loading your profile (and therefore Tyr functions/aliases).');
81
+ logger.info('To allow it, run in a PowerShell console:');
82
82
  logger.info(' Set-ExecutionPolicy RemoteSigned -Scope CurrentUser');
83
83
  }
84
84
  } catch {
85
- logger.warn('No se pudo comprobar la Execution Policy de PowerShell. Verifícala manualmente si los comandos no cargan.');
85
+ logger.warn('Could not check PowerShell Execution Policy. Verify it manually if commands do not load.');
86
86
  }
87
87
  }
88
88
 
@@ -176,15 +176,15 @@ async function configureUnixShell(tyrFs: any, logger: any, homeDir: string, alia
176
176
  }
177
177
  await tyrFs.ensureLine(rcFile, `source "${aliasesPath}"`);
178
178
  await tyrFs.ensureLine(rcFile, `source "${pluginsPath}"`);
179
- logger.success(`Shell configurado: ${rcFile}`);
180
- logger.info(`Ejecuta: source ${rcFile} (o abre una nueva terminal)`);
179
+ logger.success(`Shell configured: ${rcFile}`);
180
+ logger.info(`Run: source ${rcFile} (or open a new terminal)`);
181
181
  }
182
182
 
183
183
  async function configureWindowsShell(tyrFs: any, logger: any, shell: any, aliasesPath: string, pluginsPath: string): Promise<void> {
184
184
  const profiles = getWindowsProfilePaths();
185
185
 
186
186
  if (profiles.length === 0) {
187
- logger.warn('Could not detect PowerShell profile (USERPROFILE no está definido).');
187
+ logger.warn('Could not detect PowerShell profile (USERPROFILE is not defined).');
188
188
  logger.info(`Add manually:\n . "${aliasesPath}"\n . "${pluginsPath}"`);
189
189
  return;
190
190
  }
@@ -197,7 +197,7 @@ async function configureWindowsShell(tyrFs: any, logger: any, shell: any, aliase
197
197
  logger.success(`PowerShell profile configured: ${psProfile}`);
198
198
  }
199
199
 
200
- logger.info('Restart PowerShell (o abre una nueva consola) para aplicar los cambios.');
200
+ logger.info('Restart PowerShell (or open a new console) to apply the changes.');
201
201
 
202
202
  await checkWindowsExecutionPolicy(shell, logger);
203
203
  }
@@ -322,21 +322,19 @@ export default function config({ logger, fs: tyrFs, frameworkRoot, shell }: TyrC
322
322
  }
323
323
  }
324
324
 
325
- // Garantizar package.json + tsconfig.json + npm install siempre,
326
- // tanto en init fresh como al clonar un repo existente.
327
325
  const packageJsonPath = path.join(userRoot, 'package.json');
328
326
  const tsconfigPath = path.join(userRoot, 'tsconfig.json');
329
327
  let needsInstall = false;
330
328
 
331
329
  if (!tyrFs.exists(packageJsonPath)) {
332
330
  await tyrFs.write(packageJsonPath, PACKAGE_JSON_TEMPLATE);
333
- logger.success(`Archivo creado: ${packageJsonPath}`);
331
+ logger.success(`File created: ${packageJsonPath}`);
334
332
  needsInstall = true;
335
333
  }
336
334
 
337
335
  if (!tyrFs.exists(tsconfigPath)) {
338
336
  await tyrFs.write(tsconfigPath, TSCONFIG_TEMPLATE);
339
- logger.success(`Archivo creado: ${tsconfigPath}`);
337
+ logger.success(`File created: ${tsconfigPath}`);
340
338
  needsInstall = true;
341
339
  }
342
340
 
@@ -355,7 +353,7 @@ export default function config({ logger, fs: tyrFs, frameworkRoot, shell }: TyrC
355
353
  const pluginsPath = path.join(userRoot, `plugins${ext}`);
356
354
 
357
355
  if (tyrFs.exists(aliasesPath) || tyrFs.exists(pluginsPath)) {
358
- logger.info('\nConfigurando shell...');
356
+ logger.info('\nConfiguring shell...');
359
357
  if (isWindows) {
360
358
  await configureWindowsShell(tyrFs, logger, shell, aliasesPath, pluginsPath);
361
359
  } else {