@oclif/core 2.9.5 → 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/module-loader.js +3 -1
- package/package.json +1 -1
package/lib/module-loader.js
CHANGED
|
@@ -100,10 +100,12 @@ class ModuleLoader {
|
|
|
100
100
|
const extension = path.extname(filePath).toLowerCase();
|
|
101
101
|
switch (extension) {
|
|
102
102
|
case '.js':
|
|
103
|
-
|
|
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;
|