@optique/inquirer 1.0.0-dev.1693 → 1.0.0-dev.1697
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/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ const __inquirer_prompts = __toESM(require("@inquirer/prompts"));
|
|
|
25
25
|
const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
|
|
26
26
|
const __optique_core_parser = __toESM(require("@optique/core/parser"));
|
|
27
27
|
const __optique_core_message = __toESM(require("@optique/core/message"));
|
|
28
|
+
const __optique_core_modifiers = __toESM(require("@optique/core/modifiers"));
|
|
28
29
|
|
|
29
30
|
//#region src/index.ts
|
|
30
31
|
const promptFunctionsOverrideSymbol = Symbol.for("@optique/inquirer/prompt-functions");
|
|
@@ -320,7 +321,7 @@ function prompt(parser, config) {
|
|
|
320
321
|
$stateType: parser.$stateType,
|
|
321
322
|
priority: parser.priority,
|
|
322
323
|
[__optique_core_parser.inheritParentAnnotationsKey]: true,
|
|
323
|
-
[
|
|
324
|
+
[__optique_core_modifiers.optionalStyleWrapperKey]: true,
|
|
324
325
|
usage: parser.usage.length === 1 && parser.usage[0].type === "optional" ? parser.usage : [{
|
|
325
326
|
type: "optional",
|
|
326
327
|
terms: parser.usage
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { Separator, checkbox, confirm, editor, expand, input, number, password,
|
|
|
2
2
|
import { annotationKey, getAnnotations, inheritAnnotations, injectAnnotations, unwrapInjectedAnnotationWrapper } from "@optique/core/annotations";
|
|
3
3
|
import { annotationWrapperRequiresSourceBindingKey, composeWrappedSourceMetadata, defineInheritedAnnotationParser, getDelegatingSuggestRuntimeNodes, inheritParentAnnotationsKey } from "@optique/core/parser";
|
|
4
4
|
import { message } from "@optique/core/message";
|
|
5
|
+
import { optionalStyleWrapperKey } from "@optique/core/modifiers";
|
|
5
6
|
|
|
6
7
|
//#region src/index.ts
|
|
7
8
|
const promptFunctionsOverrideSymbol = Symbol.for("@optique/inquirer/prompt-functions");
|
|
@@ -297,7 +298,7 @@ function prompt(parser, config) {
|
|
|
297
298
|
$stateType: parser.$stateType,
|
|
298
299
|
priority: parser.priority,
|
|
299
300
|
[inheritParentAnnotationsKey]: true,
|
|
300
|
-
[
|
|
301
|
+
[optionalStyleWrapperKey]: true,
|
|
301
302
|
usage: parser.usage.length === 1 && parser.usage[0].type === "optional" ? parser.usage : [{
|
|
302
303
|
type: "optional",
|
|
303
304
|
terms: parser.usage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/inquirer",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.1697+ea94a9ac",
|
|
4
4
|
"description": "Interactive prompt support for Optique via Inquirer.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"sideEffects": false,
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@inquirer/prompts": "^8.3.0",
|
|
59
|
-
"@optique/core": "1.0.0-dev.
|
|
59
|
+
"@optique/core": "1.0.0-dev.1697+ea94a9ac"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "^20.19.9",
|
|
63
63
|
"tsdown": "^0.13.0",
|
|
64
64
|
"typescript": "^5.8.3",
|
|
65
|
-
"@optique/env": "1.0.0-dev.
|
|
65
|
+
"@optique/env": "1.0.0-dev.1697+ea94a9ac"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|