@optique/run 1.3.0-dev.2565 → 1.3.0-dev.2567
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/dist/print.cjs +1 -1
- package/dist/print.js +1 -1
- package/dist/run.cjs +2 -1
- package/dist/run.d.cts +2 -1
- package/dist/run.d.ts +2 -1
- package/dist/run.js +2 -1
- package/package.json +4 -4
package/dist/print.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const node_process = require_rolldown_runtime.__toESM(require("node:process"));
|
|
3
2
|
const __optique_core_internal_terminal = require_rolldown_runtime.__toESM(require("@optique/core/internal/terminal"));
|
|
3
|
+
const node_process = require_rolldown_runtime.__toESM(require("node:process"));
|
|
4
4
|
|
|
5
5
|
//#region src/print.ts
|
|
6
6
|
/**
|
package/dist/print.js
CHANGED
package/dist/run.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_terminal = require('./terminal.cjs');
|
|
3
|
+
const __optique_core_internal_terminal = require_rolldown_runtime.__toESM(require("@optique/core/internal/terminal"));
|
|
3
4
|
const __optique_core_facade = require_rolldown_runtime.__toESM(require("@optique/core/facade"));
|
|
4
5
|
const node_path = require_rolldown_runtime.__toESM(require("node:path"));
|
|
5
6
|
const node_process = require_rolldown_runtime.__toESM(require("node:process"));
|
|
@@ -181,7 +182,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
181
182
|
return {
|
|
182
183
|
programName,
|
|
183
184
|
args,
|
|
184
|
-
coreOptions
|
|
185
|
+
coreOptions: options.maxWidth == null ? (0, __optique_core_internal_terminal.withAutomaticWidth)(coreOptions) : coreOptions
|
|
185
186
|
};
|
|
186
187
|
}
|
|
187
188
|
function runImpl(parserOrProgram, options = {}) {
|
package/dist/run.d.cts
CHANGED
|
@@ -65,7 +65,8 @@ interface RunOptions {
|
|
|
65
65
|
* Maximum width for output formatting. Text will be wrapped to fit within
|
|
66
66
|
* this width. If not specified, uses a positive finite integer from the
|
|
67
67
|
* terminal width, then a positive decimal integer from `COLUMNS`. Invalid
|
|
68
|
-
* or inaccessible detected values are ignored
|
|
68
|
+
* or inaccessible detected values are ignored. Automatic widths too narrow
|
|
69
|
+
* for the output layout disable wrapping; explicit values retain the
|
|
69
70
|
* formatter's validation.
|
|
70
71
|
*
|
|
71
72
|
* @default Valid `process.stdout.columns`, then `COLUMNS`, or no wrapping
|
package/dist/run.d.ts
CHANGED
|
@@ -65,7 +65,8 @@ interface RunOptions {
|
|
|
65
65
|
* Maximum width for output formatting. Text will be wrapped to fit within
|
|
66
66
|
* this width. If not specified, uses a positive finite integer from the
|
|
67
67
|
* terminal width, then a positive decimal integer from `COLUMNS`. Invalid
|
|
68
|
-
* or inaccessible detected values are ignored
|
|
68
|
+
* or inaccessible detected values are ignored. Automatic widths too narrow
|
|
69
|
+
* for the output layout disable wrapping; explicit values retain the
|
|
69
70
|
* formatter's validation.
|
|
70
71
|
*
|
|
71
72
|
* @default Valid `process.stdout.columns`, then `COLUMNS`, or no wrapping
|
package/dist/run.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { detectColorSupport, detectTerminalWidth, readEnvironmentVariable } from "./terminal.js";
|
|
2
|
+
import { withAutomaticWidth } from "@optique/core/internal/terminal";
|
|
2
3
|
import { runParser, runWith, runWithSync } from "@optique/core/facade";
|
|
3
4
|
import path from "node:path";
|
|
4
5
|
import process from "node:process";
|
|
@@ -180,7 +181,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
180
181
|
return {
|
|
181
182
|
programName,
|
|
182
183
|
args,
|
|
183
|
-
coreOptions
|
|
184
|
+
coreOptions: options.maxWidth == null ? withAutomaticWidth(coreOptions) : coreOptions
|
|
184
185
|
};
|
|
185
186
|
}
|
|
186
187
|
function runImpl(parserOrProgram, options = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/run",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2567",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
},
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@optique/core": "1.3.0-dev.
|
|
79
|
+
"@optique/core": "1.3.0-dev.2567+2ca0bc6e"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@optique/config": "1.3.0-dev.
|
|
83
|
-
"@optique/env": "1.3.0-dev.
|
|
82
|
+
"@optique/config": "1.3.0-dev.2567+2ca0bc6e",
|
|
83
|
+
"@optique/env": "1.3.0-dev.2567+2ca0bc6e",
|
|
84
84
|
"@types/node": "^24.0.0",
|
|
85
85
|
"fast-check": "^4.7.0",
|
|
86
86
|
"tsdown": "^0.13.0",
|