palabra 1.8.1 → 1.8.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.
package/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.04.08, v1.8.2
2
+
3
+ feature:
4
+ - dd5c303 palabra: -v
5
+
1
6
  2026.04.08, v1.8.1
2
7
 
3
8
  feature:
package/bin/palabra.js CHANGED
@@ -5,10 +5,18 @@ import {execa} from 'execa';
5
5
  import {tryToCatch} from 'try-to-catch';
6
6
  import {parseArgs} from '../lib/cli/parse-args.js';
7
7
  import {instalar} from '../lib/cli/instalar.js';
8
+ import info from '../package.json' with {
9
+ type: 'json',
10
+ };
8
11
 
9
12
  const argv = process.argv.slice(2);
10
13
  const args = parseArgs(argv);
11
14
 
15
+ if (args.version) {
16
+ console.log(`v${info.version}`);
17
+ process.exit();
18
+ }
19
+
12
20
  const instrucciones = args._.shift();
13
21
 
14
22
  let cmd = '';
@@ -6,7 +6,8 @@ export const parseArgs = (args) => {
6
6
  q: 'quiet',
7
7
  h: 'help',
8
8
  d: 'directorio',
9
+ v: 'version',
9
10
  },
10
- boolean: ['quiet', 'help', 'dry-run', 'directorio'],
11
+ boolean: ['quiet', 'help', 'dry-run', 'directorio', 'version'],
11
12
  });
12
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",