@optique/run 1.0.0-dev.767 → 1.0.0-dev.771

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.
@@ -58,7 +58,7 @@ function path(options = {}) {
58
58
  success: false,
59
59
  error: options.errors?.emptyPath ? typeof options.errors.emptyPath === "function" ? options.errors.emptyPath(input) : options.errors.emptyPath : __optique_core_message.message`Path must not be empty.`
60
60
  };
61
- if (extensions && extensions.length > 0) {
61
+ if (type !== "directory" && extensions && extensions.length > 0) {
62
62
  const base = /[/\\]$/.test(input) ? "" : (0, node_path.basename)(input);
63
63
  if (!extensions.some((ext) => base.endsWith(ext))) {
64
64
  const ext = (0, node_path.extname)(input);
@@ -57,7 +57,7 @@ function path(options = {}) {
57
57
  success: false,
58
58
  error: options.errors?.emptyPath ? typeof options.errors.emptyPath === "function" ? options.errors.emptyPath(input) : options.errors.emptyPath : message`Path must not be empty.`
59
59
  };
60
- if (extensions && extensions.length > 0) {
60
+ if (type !== "directory" && extensions && extensions.length > 0) {
61
61
  const base = /[/\\]$/.test(input) ? "" : basename(input);
62
62
  if (!extensions.some((ext) => base.endsWith(ext))) {
63
63
  const ext = extname(input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/run",
3
- "version": "1.0.0-dev.767+88628ce6",
3
+ "version": "1.0.0-dev.771+55c12309",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "sideEffects": false,
72
72
  "dependencies": {
73
- "@optique/core": "1.0.0-dev.767+88628ce6"
73
+ "@optique/core": "1.0.0-dev.771+55c12309"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^20.19.9",