@oclif/core 4.2.10 → 4.3.1

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.
@@ -96,7 +96,7 @@ export declare class Config implements IConfig {
96
96
  loadTheme(): Promise<Theme | undefined>;
97
97
  protected macosCacheDir(): string | undefined;
98
98
  runCommand<T = unknown>(id: string, argv?: string[], cachedCommand?: Command.Loadable | null): Promise<T>;
99
- runHook<T extends keyof Hooks>(event: T, opts: Hooks[T]['options'], timeout?: number, captureErrors?: boolean): Promise<Hook.Result<Hooks[T]['return']>>;
99
+ runHook<T extends keyof Hooks, P extends Hooks = Hooks>(event: T, opts: P[T]['options'], timeout?: number, captureErrors?: boolean): Promise<Hook.Result<P[T]['return']>>;
100
100
  s3Key(type: keyof S3Templates, ext?: '.tar.gz' | '.tar.xz' | IConfig.s3Key.Options, options?: IConfig.s3Key.Options): string;
101
101
  s3Url(key: string): string;
102
102
  scopedEnvVar(k: string): string | undefined;
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Plugin = void 0;
7
- const globby_1 = __importDefault(require("globby"));
8
7
  const node_path_1 = require("node:path");
9
8
  const node_util_1 = require("node:util");
9
+ const tinyglobby_1 = require("tinyglobby");
10
10
  const cache_1 = __importDefault(require("../cache"));
11
11
  const errors_1 = require("../errors");
12
12
  const module_loader_1 = require("../module-loader");
@@ -331,7 +331,7 @@ class Plugin {
331
331
  if (!commandsDir)
332
332
  return [];
333
333
  this._debug(`loading IDs from ${commandsDir}`);
334
- const files = await (0, globby_1.default)(this.commandDiscoveryOpts?.globPatterns ?? GLOB_PATTERNS, { cwd: commandsDir });
334
+ const files = await (0, tinyglobby_1.glob)(this.commandDiscoveryOpts?.globPatterns ?? GLOB_PATTERNS, { cwd: commandsDir });
335
335
  return processCommandIds(files);
336
336
  }
337
337
  async getCommandIdsFromTarget() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "4.2.10",
4
+ "version": "4.3.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {
@@ -12,7 +12,6 @@
12
12
  "debug": "^4.4.0",
13
13
  "ejs": "^3.1.10",
14
14
  "get-package-type": "^0.1.0",
15
- "globby": "^11.1.0",
16
15
  "indent-string": "^4.0.0",
17
16
  "is-wsl": "^2.2.0",
18
17
  "lilconfig": "^3.1.3",
@@ -20,13 +19,14 @@
20
19
  "semver": "^7.6.3",
21
20
  "string-width": "^4.2.3",
22
21
  "supports-color": "^8",
22
+ "tinyglobby": "^0.2.13",
23
23
  "widest-line": "^3.1.0",
24
24
  "wordwrap": "^1.0.0",
25
25
  "wrap-ansi": "^7.0.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@commitlint/config-conventional": "^19",
29
- "@eslint/compat": "^1.2.7",
29
+ "@eslint/compat": "^1.2.8",
30
30
  "@oclif/plugin-help": "^6",
31
31
  "@oclif/plugin-plugins": "^5",
32
32
  "@oclif/prettier-config": "^0.2.1",
@@ -59,10 +59,10 @@
59
59
  "mocha": "^10.8.2",
60
60
  "nyc": "^15.1.0",
61
61
  "prettier": "^3.5.3",
62
- "shx": "^0.3.4",
62
+ "shx": "^0.4.0",
63
63
  "sinon": "^18",
64
64
  "ts-node": "^10.9.2",
65
- "tsd": "^0.31.2",
65
+ "tsd": "^0.32.0",
66
66
  "typescript": "^5"
67
67
  },
68
68
  "engines": {