oclif 4.22.5 → 4.22.7

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.
@@ -42,6 +42,7 @@ const node_child_process_1 = require("node:child_process");
42
42
  const fsPromises = __importStar(require("node:fs/promises"));
43
43
  const node_path_1 = __importDefault(require("node:path"));
44
44
  const node_util_1 = require("node:util");
45
+ const semver_1 = require("semver");
45
46
  const Tarballs = __importStar(require("../../tarballs"));
46
47
  const upload_util_1 = require("../../upload-util");
47
48
  const util_1 = require("../../util");
@@ -155,7 +156,16 @@ class PackDeb extends core_1.Command {
155
156
  await exec(`${dpkgDeb} "${workspace}" "${node_path_1.default.join(dist, versionedDebBase)}"`);
156
157
  this.log(`finished building debian / ${arch}`);
157
158
  };
158
- const arches = (0, util_1.uniq)(buildConfig.targets.filter((t) => t.platform === 'linux').map((t) => t.arch));
159
+ const arches = (0, util_1.uniq)(buildConfig.targets
160
+ .filter((t) => t.platform === 'linux')
161
+ .filter((t) => {
162
+ // Skip 32-bit Arm for Node.js 24+
163
+ if (t.arch === 'arm' && (0, semver_1.gt)(buildConfig.nodeVersion, '24.0.0')) {
164
+ return false;
165
+ }
166
+ return true;
167
+ })
168
+ .map((t) => t.arch));
159
169
  await Promise.all(arches.map((a) => build(a)));
160
170
  await exec('apt-ftparchive packages . > Packages', { cwd: dist });
161
171
  this.log('debian packages created');
@@ -106,7 +106,9 @@ class UploadTarballs extends core_1.Command {
106
106
  const manifest = (0, upload_util_1.templateShortKey)('manifest', shortKeyInputs);
107
107
  const cloudKey = `${(0, upload_util_1.commitAWSDir)(config.version, buildConfig.gitSha, s3Config)}/${manifest}`;
108
108
  const local = dist(manifest);
109
+ (0, log_1.log)(`checking for buildmanifest at ${local}`);
109
110
  if (fs.existsSync(local)) {
111
+ (0, log_1.log)(`uploading buildmanifest ${manifest}`);
110
112
  return aws_1.default.s3.uploadFile(dist(manifest), {
111
113
  ...S3Options,
112
114
  CacheControl: 'max-age=86400',
@@ -12,7 +12,6 @@ const node_fs_1 = require("node:fs");
12
12
  const promises_1 = require("node:fs/promises");
13
13
  const node_path_1 = __importDefault(require("node:path"));
14
14
  const node_util_1 = require("node:util");
15
- const semver_1 = require("semver");
16
15
  const log_1 = require("../log");
17
16
  const upload_util_1 = require("../upload-util");
18
17
  const util_1 = require("../util");
@@ -191,10 +190,6 @@ const extractCLI = async (tarball, c) => {
191
190
  ]);
192
191
  };
193
192
  const buildTarget = async (target, c, options) => {
194
- if (target.platform === 'win32' && target.arch === 'arm64' && (0, semver_1.lt)(c.nodeVersion, '20.0.0')) {
195
- core_1.ux.warn('win32-arm64 is only supported for node >=20.0.0. Skipping...');
196
- return;
197
- }
198
193
  const workspace = c.workspace(target);
199
194
  const { arch, platform } = target;
200
195
  const { bin, version } = c.config;
@@ -85,6 +85,18 @@ async function buildConfig(root, options = {}) {
85
85
  core_1.ux.warn('darwin-arm64 is only supported for node >=16.0.0. Skipping...');
86
86
  return false;
87
87
  }
88
+ if (t === 'linux-arm' && semver.gt(nodeVersion, '24.0.0')) {
89
+ core_1.ux.warn('linux-arm is not supported for Node.js 24 and later. Skipping...');
90
+ return false;
91
+ }
92
+ if (t === 'win32-x86' && semver.gt(nodeVersion, '24.0.0')) {
93
+ core_1.ux.warn('win32-x86 is not supported for Node.js 24 and later. Skipping...');
94
+ return false;
95
+ }
96
+ if (t === 'win32-arm64' && semver.lt(nodeVersion, '20.0.0')) {
97
+ core_1.ux.warn('win32-arm64 is only supported for node >=20.0.0. Skipping...');
98
+ return false;
99
+ }
88
100
  return true;
89
101
  })
90
102
  .map((t) => {
@@ -1195,5 +1195,5 @@
1195
1195
  ]
1196
1196
  }
1197
1197
  },
1198
- "version": "4.22.5"
1198
+ "version": "4.22.7"
1199
1199
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "4.22.5",
4
+ "version": "4.22.7",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run.js"
@@ -15,7 +15,7 @@
15
15
  "@inquirer/select": "^2.5.0",
16
16
  "@oclif/core": "^4.5.2",
17
17
  "@oclif/plugin-help": "^6.2.29",
18
- "@oclif/plugin-not-found": "^3.2.61",
18
+ "@oclif/plugin-not-found": "^3.2.63",
19
19
  "@oclif/plugin-warn-if-update-available": "^3.1.44",
20
20
  "ansis": "^3.16.0",
21
21
  "async-retry": "^1.3.3",
@@ -60,7 +60,7 @@
60
60
  "eslint-plugin-perfectionist": "^4",
61
61
  "husky": "^9.1.7",
62
62
  "lint-staged": "^15",
63
- "mocha": "^10.8.2",
63
+ "mocha": "^11",
64
64
  "nyc": "^15.1.0",
65
65
  "prettier": "^3.6.2",
66
66
  "shelljs": "^0.10.0",