@l10nmonster/cli 3.0.0-alpha.9 → 3.1.0

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/.releaserc.json CHANGED
@@ -20,7 +20,7 @@
20
20
  },
21
21
  {
22
22
  "path": "@semantic-release/npm",
23
- "npmPublish": true
23
+ "npmPublish": false
24
24
  },
25
25
  {
26
26
  "path": "@semantic-release/git",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # @l10nmonster/cli [3.1.0](https://public-github/l10nmonster/l10nmonster/compare/@l10nmonster/cli@3.0.0...@l10nmonster/cli@3.1.0) (2025-12-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **server:** Fix cart cleanup ([9bbcab9](https://public-github/l10nmonster/l10nmonster/commit/9bbcab93e1fd20aeb09f59c828665159f091f37c))
7
+
8
+
9
+ ### Features
10
+
11
+ * **core:** Major refactor ([6992ee4](https://public-github/l10nmonster/l10nmonster/commit/6992ee4d74ad2e25afef6220f92f2e72dfd02457))
12
+
13
+ # @l10nmonster/cli [3.1.0](https://public-github/l10nmonster/l10nmonster/compare/@l10nmonster/cli@3.0.0...@l10nmonster/cli@3.1.0) (2025-12-20)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **server:** Fix cart cleanup ([9bbcab9](https://public-github/l10nmonster/l10nmonster/commit/9bbcab93e1fd20aeb09f59c828665159f091f37c))
19
+
20
+
21
+ ### Features
22
+
23
+ * **core:** Major refactor ([6992ee4](https://public-github/l10nmonster/l10nmonster/commit/6992ee4d74ad2e25afef6220f92f2e72dfd02457))
24
+
1
25
  # Changelog
2
26
 
3
27
  All notable changes to this project will be documented in this file.
package/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable no-underscore-dangle */
2
2
 
3
3
  import { Command, Argument, Option, InvalidArgumentError } from 'commander';
4
- import { getVerbosity } from '@l10nmonster/core';
5
4
 
6
5
  import path from 'path';
7
6
  import { readFileSync } from 'fs';
@@ -82,7 +81,7 @@ export default async function runMonsterCLI(monsterConfig, cliCommand) {
82
81
  const argv = typeof cliCommand === 'string' ? cliCommand.split(' ') : cliCommand;
83
82
  await monsterCLI.parseAsync(argv);
84
83
  } catch(e) {
85
- console.error(`Unable to run CLI: ${(getVerbosity() > 1 ? e.stack : e.message) || e}`);
84
+ console.error(`Unable to run the CLI: ${e.message ?? e}`);
86
85
  process.exit(1);
87
86
  }
88
87
  }
package/l10n.mjs CHANGED
@@ -1,5 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ // Global unhandled promise rejection handler
4
+ process.on('unhandledRejection', (reason, promise) => {
5
+ console.error('🚨 Unhandled Promise Rejection detected:');
6
+ console.error('Promise:', promise);
7
+ console.error('Reason:', reason);
8
+ if (reason instanceof Error && reason.stack) {
9
+ console.error('Stack trace:', reason.stack);
10
+ }
11
+ // In CLI context, we should exit on unhandled rejections to prevent silent failures
12
+ console.error('Exiting due to unhandled promise rejection...');
13
+ process.exit(1);
14
+ });
15
+
16
+ // Global uncaught exception handler (for completeness)
17
+ process.on('uncaughtException', (error) => {
18
+ console.error('🚨 Uncaught Exception:', error);
19
+ process.exit(1);
20
+ });
21
+
3
22
  import runMonsterCLI from './index.js';
4
23
  import { resolve, dirname, join } from 'path';
5
24
  import { existsSync } from 'fs';
package/package.json CHANGED
@@ -1,16 +1,12 @@
1
1
  {
2
2
  "name": "@l10nmonster/cli",
3
- "version": "3.0.0-alpha.9",
3
+ "version": "3.1.0",
4
4
  "description": "Continuous localization for the rest of us",
5
5
  "bin": {
6
6
  "l10n": "l10n.mjs"
7
7
  },
8
8
  "type": "module",
9
9
  "main": "index.js",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/l10nmonster/l10nmonster.git"
13
- },
14
10
  "keywords": [
15
11
  "translation",
16
12
  "localization",
@@ -32,6 +28,6 @@
32
28
  },
33
29
  "dependencies": {
34
30
  "commander": "^14",
35
- "@l10nmonster/core": "^3.0.0-alpha.0"
31
+ "@l10nmonster/core": "3.1.0"
36
32
  }
37
33
  }