@optique/config 1.4.0-dev.2715 → 1.4.0-dev.2718
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 +3 -1
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -21,11 +21,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
}) : target, mod));
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
+
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
24
25
|
const node_fs = __toESM(require("node:fs"));
|
|
25
26
|
const node_os = __toESM(require("node:os"));
|
|
26
27
|
const node_path = __toESM(require("node:path"));
|
|
27
28
|
const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
|
|
28
|
-
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
29
29
|
const __optique_core_fluent = __toESM(require("@optique/core/fluent"));
|
|
30
30
|
const __optique_core_message = __toESM(require("@optique/core/message"));
|
|
31
31
|
|
|
@@ -451,6 +451,8 @@ function bindConfig(parser, options) {
|
|
|
451
451
|
enumerable: false
|
|
452
452
|
});
|
|
453
453
|
(0, __optique_core_extension.delegateOptionParsing)(boundParser, parser, getCliState);
|
|
454
|
+
const emptyStep = (0, __optique_core_extension.getEmptyInputBehavior)(parser).step;
|
|
455
|
+
(0, __optique_core_extension.defineEmptyInputBehavior)(boundParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
454
456
|
return (0, __optique_core_fluent.fluent)(boundParser);
|
|
455
457
|
}
|
|
456
458
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { defineEmptyInputBehavior, defineTraits, delegateOptionParsing, delegateSuggestNodes, getEmptyInputBehavior, inheritAnnotations, inheritOptionScope, injectAnnotations, mapModeValue, mapSourceMetadata, withAnnotationView, wrapForMode } from "@optique/core/extension";
|
|
1
2
|
import { readFileSync } from "node:fs";
|
|
2
3
|
import { homedir } from "node:os";
|
|
3
4
|
import { dirname, join, resolve, sep } from "node:path";
|
|
4
5
|
import { getAnnotations } from "@optique/core/annotations";
|
|
5
|
-
import { defineTraits, delegateOptionParsing, delegateSuggestNodes, inheritAnnotations, inheritOptionScope, injectAnnotations, mapModeValue, mapSourceMetadata, withAnnotationView, wrapForMode } from "@optique/core/extension";
|
|
6
6
|
import { fluent } from "@optique/core/fluent";
|
|
7
7
|
import { message } from "@optique/core/message";
|
|
8
8
|
|
|
@@ -428,6 +428,8 @@ function bindConfig(parser, options) {
|
|
|
428
428
|
enumerable: false
|
|
429
429
|
});
|
|
430
430
|
delegateOptionParsing(boundParser, parser, getCliState);
|
|
431
|
+
const emptyStep = getEmptyInputBehavior(parser).step;
|
|
432
|
+
defineEmptyInputBehavior(boundParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
431
433
|
return fluent(boundParser);
|
|
432
434
|
}
|
|
433
435
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/config",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.2718",
|
|
4
4
|
"description": "Configuration file support for Optique with Standard Schema validation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"@standard-schema/spec": "^1.1.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@optique/core": "1.4.0-dev.
|
|
68
|
+
"@optique/core": "1.4.0-dev.2718+779844d0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@optique/env": "1.4.0-dev.
|
|
71
|
+
"@optique/env": "1.4.0-dev.2718+779844d0",
|
|
72
72
|
"@standard-schema/spec": "^1.1.0",
|
|
73
73
|
"@types/node": "^24.0.0",
|
|
74
74
|
"fast-check": "^4.7.0",
|