@oclif/core 4.0.17 → 4.0.18

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.
@@ -7,6 +7,7 @@ exports.TS_CONFIGS = void 0;
7
7
  exports.tsPath = tsPath;
8
8
  const promises_1 = require("node:fs/promises");
9
9
  const node_path_1 = require("node:path");
10
+ const node_url_1 = require("node:url");
10
11
  const cache_1 = __importDefault(require("../cache"));
11
12
  const warn_1 = require("../errors/warn");
12
13
  const settings_1 = require("../settings");
@@ -89,12 +90,16 @@ async function registerTsx(root, moduleType) {
89
90
  return;
90
91
  debug('registering tsx at', root);
91
92
  debug('tsx path:', tsxPath);
92
- const { register } = await import(tsxPath);
93
+ const { href } = (0, node_url_1.pathToFileURL)(tsxPath);
94
+ debug('tsx href:', href);
95
+ const { register } = await import(href);
96
+ debug('Successfully imported tsx');
93
97
  register();
94
98
  REGISTERED.add(root);
95
99
  }
96
- catch {
100
+ catch (error) {
97
101
  debug(`Could not find tsx. Skipping tsx registration for ${root}.`);
102
+ debug(error);
98
103
  }
99
104
  }
100
105
  async function registerTSNode(root, tsconfig) {
@@ -106,9 +111,11 @@ async function registerTSNode(root, tsconfig) {
106
111
  let tsNode;
107
112
  try {
108
113
  tsNode = require(tsNodePath);
114
+ debug('Successfully required ts-node');
109
115
  }
110
- catch {
116
+ catch (error) {
111
117
  debug(`Could not find ts-node at ${tsNodePath}. Skipping ts-node registration for ${root}.`);
118
+ debug(error);
112
119
  (0, warn_1.memoizedWarn)(`Could not find ts-node at ${tsNodePath}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);
113
120
  return;
114
121
  }
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.17",
4
+ "version": "4.0.18",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {
@@ -49,13 +49,13 @@
49
49
  "commitlint": "^19",
50
50
  "cross-env": "^7.0.3",
51
51
  "eslint": "^8.57.0",
52
- "eslint-config-oclif": "^5.2.0",
53
- "eslint-config-oclif-typescript": "^3.1.8",
52
+ "eslint-config-oclif": "^5.2.1",
53
+ "eslint-config-oclif-typescript": "^3.1.9",
54
54
  "eslint-config-prettier": "^9.1.0",
55
- "husky": "^9.1.3",
55
+ "husky": "^9.1.4",
56
56
  "lint-staged": "^15",
57
57
  "madge": "^6.1.0",
58
- "mocha": "^10.7.0",
58
+ "mocha": "^10.7.3",
59
59
  "nyc": "^15.1.0",
60
60
  "prettier": "^3.3.3",
61
61
  "shx": "^0.3.4",