hispano-lang 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/bin/hispano.js +13 -3
  2. package/package.json +1 -1
package/bin/hispano.js CHANGED
@@ -20,10 +20,20 @@ try {
20
20
  } catch (error2) {
21
21
  try {
22
22
  // Try from current directory (fallback)
23
- hispanoLang = require('./index.js');
23
+ hispanoLang = require('./index.js');
24
24
  } catch (error3) {
25
- console.error('❌ Error: No se pudo cargar HispanoLang. Verifica la instalación.');
26
- process.exit(1);
25
+ try {
26
+ // Try from node_modules (when installed globally)
27
+ hispanoLang = require('hispano-lang');
28
+ } catch (error4) {
29
+ console.error('❌ Error: No se pudo cargar HispanoLang. Verifica la instalación.');
30
+ console.error('Rutas intentadas:');
31
+ console.error(' - ../dist/index.js');
32
+ console.error(' - ../main.js');
33
+ console.error(' - ./index.js');
34
+ console.error(' - hispano-lang');
35
+ process.exit(1);
36
+ }
27
37
  }
28
38
  }
29
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hispano-lang",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Un lenguaje de programación educativo en español para enseñar programación sin barreras de idioma",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",