@oclif/core 2.9.4 → 2.10.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.
package/lib/command.d.ts CHANGED
@@ -93,7 +93,7 @@ export declare abstract class Command {
93
93
  constructor(argv: string[], config: Config);
94
94
  protected get ctor(): typeof Command;
95
95
  protected _run<T>(): Promise<T>;
96
- exit(code?: number): void;
96
+ exit(code?: number): never;
97
97
  warn(input: string | Error): string | Error;
98
98
  error(input: string | Error, options: {
99
99
  code?: string;
package/lib/command.js CHANGED
@@ -128,7 +128,7 @@ class Command {
128
128
  return result;
129
129
  }
130
130
  exit(code = 0) {
131
- return Errors.exit(code);
131
+ Errors.exit(code);
132
132
  }
133
133
  warn(input) {
134
134
  if (!this.jsonEnabled())
@@ -100,10 +100,12 @@ class ModuleLoader {
100
100
  const extension = path.extname(filePath).toLowerCase();
101
101
  switch (extension) {
102
102
  case '.js':
103
- return getPackageType.sync(filePath) === 'module';
103
+ case '.jsx':
104
104
  case '.ts':
105
+ case '.tsx':
105
106
  return getPackageType.sync(filePath) === 'module';
106
107
  case '.mjs':
108
+ case '.mts':
107
109
  return true;
108
110
  default:
109
111
  return false;
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": "2.9.4",
4
+ "version": "2.10.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {