@optique/config 0.10.0 → 1.0.0-dev.387
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
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig } from "./src-
|
|
1
|
+
import { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig } from "./src-Dm_17c1d.js";
|
|
2
2
|
|
|
3
3
|
export { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig };
|
package/dist/run.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_src = require('./src-
|
|
1
|
+
const require_src = require('./src-9MkUoh9z.cjs');
|
|
2
2
|
const node_fs_promises = require_src.__toESM(require("node:fs/promises"));
|
|
3
3
|
const node_path = require_src.__toESM(require("node:path"));
|
|
4
4
|
const node_process = require_src.__toESM(require("node:process"));
|
package/dist/run.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clearActiveConfig, configKey, setActiveConfig } from "./src-
|
|
1
|
+
import { clearActiveConfig, configKey, setActiveConfig } from "./src-Dm_17c1d.js";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import { basename } from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
@@ -130,7 +130,10 @@ function bindConfig(parser, options) {
|
|
|
130
130
|
$valueType: parser.$valueType,
|
|
131
131
|
$stateType: parser.$stateType,
|
|
132
132
|
priority: parser.priority,
|
|
133
|
-
usage:
|
|
133
|
+
usage: options.default !== void 0 ? [{
|
|
134
|
+
type: "optional",
|
|
135
|
+
terms: parser.usage
|
|
136
|
+
}] : parser.usage,
|
|
134
137
|
initialState: parser.initialState,
|
|
135
138
|
parse: (context) => {
|
|
136
139
|
const annotations = (0, __optique_core_annotations.getAnnotations)(context.state);
|
|
@@ -107,7 +107,10 @@ function bindConfig(parser, options) {
|
|
|
107
107
|
$valueType: parser.$valueType,
|
|
108
108
|
$stateType: parser.$stateType,
|
|
109
109
|
priority: parser.priority,
|
|
110
|
-
usage:
|
|
110
|
+
usage: options.default !== void 0 ? [{
|
|
111
|
+
type: "optional",
|
|
112
|
+
terms: parser.usage
|
|
113
|
+
}] : parser.usage,
|
|
111
114
|
initialState: parser.initialState,
|
|
112
115
|
parse: (context) => {
|
|
113
116
|
const annotations = getAnnotations(context.state);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-dev.387+466f13e8",
|
|
4
4
|
"description": "Configuration file support for Optique with Standard Schema validation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@standard-schema/spec": "^1.1.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@optique/core": "0.
|
|
70
|
+
"@optique/core": "1.0.0-dev.387+466f13e8"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@standard-schema/spec": "^1.1.0",
|