@oclif/core 4.0.31 → 4.0.32
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/config/ts-path.js +3 -1
- package/package.json +2 -2
package/lib/config/ts-path.js
CHANGED
|
@@ -272,7 +272,9 @@ async function tsPath(root, orig, plugin) {
|
|
|
272
272
|
}
|
|
273
273
|
if (cannotTranspileEsm(rootPlugin, plugin, isProduction)) {
|
|
274
274
|
debug(`Skipping typescript path lookup for ${root} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${rootPlugin?.moduleType})`);
|
|
275
|
-
|
|
275
|
+
const warningIsDisabled = process.env.OCLIF_DISABLE_LINKED_ESM_WARNING && (0, util_1.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);
|
|
276
|
+
// Only warn if the plugin is linked AND the warning is not disabled
|
|
277
|
+
if (plugin?.type === 'link' && !warningIsDisabled)
|
|
276
278
|
(0, warn_1.memoizedWarn)(`${plugin?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`);
|
|
277
279
|
return orig;
|
|
278
280
|
}
|
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.0.
|
|
4
|
+
"version": "4.0.32",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/core/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"husky": "^9.1.6",
|
|
57
57
|
"lint-staged": "^15",
|
|
58
58
|
"madge": "^6.1.0",
|
|
59
|
-
"mocha": "^10.
|
|
59
|
+
"mocha": "^10.8.2",
|
|
60
60
|
"nyc": "^15.1.0",
|
|
61
61
|
"prettier": "^3.3.3",
|
|
62
62
|
"shx": "^0.3.4",
|