oclif 3.14.0 → 3.15.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.14.0",
2
+ "version": "3.15.0",
3
3
  "commands": {
4
4
  "generate": {
5
5
  "id": "generate",
@@ -383,6 +383,12 @@
383
383
  "description": "optionally specify a path to a tarball already generated by NPM",
384
384
  "required": false,
385
385
  "multiple": false
386
+ },
387
+ "targets": {
388
+ "name": "targets",
389
+ "type": "option",
390
+ "description": "comma-separated targets to pack (e.g.: win32-x64,win32-x86)",
391
+ "multiple": false
386
392
  }
387
393
  },
388
394
  "args": {}
@@ -487,6 +493,12 @@
487
493
  "required": true,
488
494
  "multiple": false,
489
495
  "default": "."
496
+ },
497
+ "targets": {
498
+ "name": "targets",
499
+ "type": "option",
500
+ "description": "comma-separated targets to pack (e.g.: win32-x64,win32-x86)",
501
+ "multiple": false
490
502
  }
491
503
  },
492
504
  "args": {}
@@ -5,6 +5,7 @@ export default class PackWin extends Command {
5
5
  root: Interfaces.OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
6
  'additional-cli': Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
7
  tarball: Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
+ targets: Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
9
  };
9
10
  run(): Promise<void>;
10
11
  private checkForNSIS;
@@ -201,9 +201,10 @@ FunctionEnd
201
201
  };
202
202
  class PackWin extends core_1.Command {
203
203
  async run() {
204
+ var _a;
204
205
  await this.checkForNSIS();
205
206
  const { flags } = await this.parse(PackWin);
206
- const buildConfig = await Tarballs.buildConfig(flags.root);
207
+ const buildConfig = await Tarballs.buildConfig(flags.root, { targets: (_a = flags === null || flags === void 0 ? void 0 : flags.targets) === null || _a === void 0 ? void 0 : _a.split(',') });
207
208
  const { config } = buildConfig;
208
209
  await Tarballs.build(buildConfig, { platform: 'win32', pack: false, tarball: flags.tarball, parallel: true });
209
210
  const arches = buildConfig.targets.filter(t => t.platform === 'win32').map(t => t.arch);
@@ -273,6 +274,9 @@ the CLI should already exist in a directory named after the CLI that is the root
273
274
  description: 'optionally specify a path to a tarball already generated by NPM',
274
275
  required: false,
275
276
  }),
277
+ targets: core_1.Flags.string({
278
+ description: 'comma-separated targets to pack (e.g.: win32-x64,win32-x86)',
279
+ }),
276
280
  };
277
281
  async function signWindows(o, arch, config, windows) {
278
282
  const buildLocationUnsigned = o.replace(`${arch}.exe`, `${arch}-unsigned.exe`);
@@ -3,6 +3,7 @@ export default class UploadWin extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
5
  root: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ targets: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
7
  };
7
8
  run(): Promise<void>;
8
9
  }
@@ -8,8 +8,9 @@ const Tarballs = require("../../tarballs");
8
8
  const upload_util_1 = require("../../upload-util");
9
9
  class UploadWin extends core_1.Command {
10
10
  async run() {
11
+ var _a;
11
12
  const { flags } = await this.parse(UploadWin);
12
- const buildConfig = await Tarballs.buildConfig(flags.root);
13
+ const buildConfig = await Tarballs.buildConfig(flags.root, { targets: (_a = flags === null || flags === void 0 ? void 0 : flags.targets) === null || _a === void 0 ? void 0 : _a.split(',') });
13
14
  const { s3Config, config, dist } = buildConfig;
14
15
  const S3Options = {
15
16
  Bucket: s3Config.bucket,
@@ -40,4 +41,5 @@ exports.default = UploadWin;
40
41
  UploadWin.description = 'upload windows installers built with pack:win';
41
42
  UploadWin.flags = {
42
43
  root: core_1.Flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
44
+ targets: core_1.Flags.string({ description: 'comma-separated targets to pack (e.g.: win32-x64,win32-x86)' }),
43
45
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "3.14.0",
4
+ "version": "3.15.0",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run"