@optique/config 0.10.0-dev.347 → 0.10.0-dev.353
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-DZL65yIT.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-tMsl2AEu.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-DZL65yIT.js";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import { basename } from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
@@ -173,7 +173,7 @@ function bindConfig(parser, options) {
|
|
|
173
173
|
},
|
|
174
174
|
complete: (state) => {
|
|
175
175
|
const bindState = state;
|
|
176
|
-
if (bindState
|
|
176
|
+
if (bindState?.hasCliValue && bindState.cliState !== void 0) {
|
|
177
177
|
const innerResult = parser.complete(bindState.cliState);
|
|
178
178
|
if (innerResult instanceof Promise) return innerResult.then((res) => {
|
|
179
179
|
if (res.success) return {
|
|
@@ -196,7 +196,7 @@ function bindConfig(parser, options) {
|
|
|
196
196
|
},
|
|
197
197
|
complete: (state) => {
|
|
198
198
|
const bindState = state;
|
|
199
|
-
if (bindState
|
|
199
|
+
if (bindState?.hasCliValue && bindState.cliState !== void 0) {
|
|
200
200
|
const innerResult = parser.complete(bindState.cliState);
|
|
201
201
|
if (innerResult instanceof Promise) return innerResult.then((res) => {
|
|
202
202
|
if (res.success) return {
|