@aomex/console 3.21.1 → 3.23.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.23.0](https://github.com/aomex/aomex/compare/v3.22.0...v3.23.0) (2025-04-16)
7
+
8
+ **Note:** Version bump only for package @aomex/console
9
+
10
+
11
+
12
+
13
+
14
+ # [3.22.0](https://github.com/aomex/aomex/compare/v3.21.1...v3.22.0) (2025-04-07)
15
+
16
+
17
+ ### Features
18
+
19
+ * **console:** 增加 AOMEX_CLI_MODE 环境变量 ([f8c9372](https://github.com/aomex/aomex/commit/f8c937278cb652629f293a14925dd9815e0c769c))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [3.21.1](https://github.com/aomex/aomex/compare/v3.21.0...v3.21.1) (2025-04-06)
7
26
 
8
27
  **Note:** Version bump only for package @aomex/console
package/bin.mjs CHANGED
@@ -19,6 +19,8 @@ if (!cliEntry) {
19
19
  throw err;
20
20
  }
21
21
 
22
+ process.env['AOMEX_CLI_MODE'] = '1';
23
+
22
24
  if (cliEntry.endsWith('ts')) {
23
25
  await tsImport(pathToFileURL(cliEntry).toString(), import.meta.url);
24
26
  } else {
package/dist/index.d.ts CHANGED
@@ -397,4 +397,12 @@ declare class Commander<T extends ConsoleMiddlewareToken[] | [] = any[], Props e
397
397
 
398
398
  declare const commanders: (options: GlobPathOptions | Commander[]) => ConsoleMiddleware;
399
399
 
400
+ declare global {
401
+ namespace NodeJS {
402
+ interface ProcessEnv {
403
+ AOMEX_CLI_MODE?: '1';
404
+ }
405
+ }
406
+ }
407
+
400
408
  export { Builder, type BuilderOptions, Commander, type CommanderOptions, ConsoleApp, ConsoleContext, ConsoleDocument, type ConsoleHelpInjector, ConsoleInput, ConsoleMiddleware, type ConsoleMiddlewareToken, collectConsoleDocument, commanders, options, scriptName, terminal, version };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/utils/meta.ts
2
- var version = "3.21.1";
2
+ var version = "3.23.0";
3
3
  var scriptName = "aomex";
4
4
 
5
5
  // src/override/console-middleware.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aomex/console",
3
- "version": "3.21.1",
3
+ "version": "3.23.0",
4
4
  "description": "控制台应用",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",