oclif 4.4.12 → 4.4.13-dev.0

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.
@@ -211,7 +211,13 @@ USAGE
211
211
  * fetches the path to a command
212
212
  */
213
213
  commandPath(plugin, c) {
214
- const commandsDir = plugin.pjson.oclif.commands;
214
+ const strategy = typeof plugin.pjson.oclif?.commands === 'string' ? 'pattern' : plugin.pjson.oclif?.commands?.strategy;
215
+ // if the strategy is explicit, we can't determine the path so return undefined
216
+ if (strategy === 'explicit')
217
+ return;
218
+ const commandsDir = typeof plugin.pjson.oclif?.commands === 'string'
219
+ ? plugin.pjson.oclif?.commands
220
+ : plugin.pjson.oclif?.commands?.target;
215
221
  if (!commandsDir)
216
222
  return;
217
223
  const hasTypescript = plugin.pjson.devDependencies?.typescript || plugin.pjson.dependencies?.typescript;
@@ -737,5 +737,5 @@
737
737
  ]
738
738
  }
739
739
  },
740
- "version": "4.4.12"
740
+ "version": "4.4.13-dev.0"
741
741
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "4.4.12",
4
+ "version": "4.4.13-dev.0",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run.js"
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@aws-sdk/client-cloudfront": "^3.511.0",
12
12
  "@aws-sdk/client-s3": "^3.504.0",
13
- "@oclif/core": "^3.19.1",
13
+ "@oclif/core": "3.19.2-dev.0",
14
14
  "@oclif/plugin-help": "^6.0.12",
15
15
  "@oclif/plugin-not-found": "^3.0.10",
16
16
  "@oclif/plugin-warn-if-update-available": "^3.0.9",
@@ -50,8 +50,8 @@
50
50
  "eslint-config-oclif": "^5.0.0",
51
51
  "eslint-config-oclif-typescript": "^3.0.44",
52
52
  "eslint-config-prettier": "^9.0.0",
53
- "fancy-test": "^3.0.10",
54
53
  "eslint-plugin-perfectionist": "^2.1.0",
54
+ "fancy-test": "^3.0.10",
55
55
  "globby": "^11.1.0",
56
56
  "husky": "^8.0.3",
57
57
  "lint-staged": "^14.0.1",
@@ -64,6 +64,9 @@
64
64
  "ts-node": "^10.7.0",
65
65
  "typescript": "^5"
66
66
  },
67
+ "resolutions": {
68
+ "@oclif/core": "3.19.2-dev.0"
69
+ },
67
70
  "engines": {
68
71
  "node": ">=18.0.0"
69
72
  },