@optique/config 0.10.0-dev.355 → 0.10.0-dev.360

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
@@ -1,4 +1,4 @@
1
- const require_src = require('./src-tMsl2AEu.cjs');
1
+ const require_src = require('./src-BymfS_8n.cjs');
2
2
 
3
3
  exports.bindConfig = require_src.bindConfig;
4
4
  exports.clearActiveConfig = require_src.clearActiveConfig;
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig } from "./src-DZL65yIT.js";
1
+ import { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig } from "./src-BugYO70U.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-tMsl2AEu.cjs');
1
+ const require_src = require('./src-BymfS_8n.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-DZL65yIT.js";
1
+ import { clearActiveConfig, configKey, setActiveConfig } from "./src-BugYO70U.js";
2
2
  import { readFile } from "node:fs/promises";
3
3
  import { basename } from "node:path";
4
4
  import process from "node:process";
@@ -191,7 +191,10 @@ function bindConfig(parser, options) {
191
191
  return getConfigOrDefault(state, options);
192
192
  },
193
193
  suggest: parser.suggest,
194
- getDocFragments: parser.getDocFragments
194
+ getDocFragments(state, upperDefaultValue) {
195
+ const defaultValue = upperDefaultValue ?? options.default;
196
+ return parser.getDocFragments(state, defaultValue);
197
+ }
195
198
  };
196
199
  }
197
200
  /**
@@ -214,7 +214,10 @@ function bindConfig(parser, options) {
214
214
  return getConfigOrDefault(state, options);
215
215
  },
216
216
  suggest: parser.suggest,
217
- getDocFragments: parser.getDocFragments
217
+ getDocFragments(state, upperDefaultValue) {
218
+ const defaultValue = upperDefaultValue ?? options.default;
219
+ return parser.getDocFragments(state, defaultValue);
220
+ }
218
221
  };
219
222
  }
220
223
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/config",
3
- "version": "0.10.0-dev.355+7475e7e5",
3
+ "version": "0.10.0-dev.360+0d55f751",
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.10.0-dev.355+7475e7e5"
70
+ "@optique/core": "0.10.0-dev.360+0d55f751"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@standard-schema/spec": "^1.1.0",
@@ -79,8 +79,8 @@
79
79
  "scripts": {
80
80
  "build": "tsdown",
81
81
  "prepublish": "tsdown",
82
- "test": "tsdown && node --experimental-transform-types --test",
83
- "test:bun": "tsdown && bun test",
82
+ "test": "node --experimental-transform-types --test",
83
+ "test:bun": "bun test",
84
84
  "test:deno": "deno test",
85
85
  "test-all": "tsdown && node --experimental-transform-types --test && bun test && deno test"
86
86
  }