@oclif/core 4.10.2 → 4.10.3
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/config.js +1 -2
- package/lib/util/os.d.ts +1 -1
- package/lib/util/os.js +5 -1
- package/package.json +2 -2
package/lib/config/config.js
CHANGED
|
@@ -38,7 +38,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Config = void 0;
|
|
40
40
|
const ejs = __importStar(require("ejs"));
|
|
41
|
-
const is_wsl_1 = __importDefault(require("is-wsl"));
|
|
42
41
|
const node_os_1 = require("node:os");
|
|
43
42
|
const node_path_1 = require("node:path");
|
|
44
43
|
const node_url_1 = require("node:url");
|
|
@@ -315,7 +314,7 @@ class Config {
|
|
|
315
314
|
this.channel = this.options.channel || channelFromVersion(this.version);
|
|
316
315
|
this.valid = this.rootPlugin.valid;
|
|
317
316
|
this.arch = (0, node_os_1.arch)() === 'ia32' ? 'x86' : (0, node_os_1.arch)();
|
|
318
|
-
this.platform =
|
|
317
|
+
this.platform = (0, os_1.getPlatform)();
|
|
319
318
|
this.windows = this.platform === 'win32';
|
|
320
319
|
this.bin = this.pjson.oclif.bin || this.name;
|
|
321
320
|
this.binAliases = this.pjson.oclif.binAliases;
|
package/lib/util/os.d.ts
CHANGED
package/lib/util/os.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.getHomeDir = getHomeDir;
|
|
4
7
|
exports.getPlatform = getPlatform;
|
|
8
|
+
const is_wsl_1 = __importDefault(require("is-wsl"));
|
|
5
9
|
const node_os_1 = require("node:os");
|
|
6
10
|
/**
|
|
7
11
|
* Call os.homedir() and return the result
|
|
@@ -23,5 +27,5 @@ function getHomeDir() {
|
|
|
23
27
|
* @returns The process' platform
|
|
24
28
|
*/
|
|
25
29
|
function getPlatform() {
|
|
26
|
-
return (0, node_os_1.platform)();
|
|
30
|
+
return is_wsl_1.default ? 'wsl' : (0, node_os_1.platform)();
|
|
27
31
|
}
|
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.10.
|
|
4
|
+
"version": "4.10.3",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/core/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/chai": "^4.3.16",
|
|
36
36
|
"@types/chai-as-promised": "^7.1.8",
|
|
37
37
|
"@types/clean-stack": "^2.1.1",
|
|
38
|
-
"@types/debug": "^4.1.
|
|
38
|
+
"@types/debug": "^4.1.13",
|
|
39
39
|
"@types/ejs": "^3.1.5",
|
|
40
40
|
"@types/indent-string": "^4.0.1",
|
|
41
41
|
"@types/mocha": "^10.0.10",
|