oclif 4.7.0 → 4.7.2

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.
@@ -6,5 +6,6 @@ export default class PackDeb extends Command {
6
6
  root: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
7
7
  tarball: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
8
8
  };
9
+ static summary: string;
9
10
  run(): Promise<void>;
10
11
  }
@@ -71,7 +71,7 @@ APT::FTPArchive::Release {
71
71
  `,
72
72
  };
73
73
  class PackDeb extends core_1.Command {
74
- static description = 'Pack CLI into debian package.';
74
+ static description = 'Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.';
75
75
  static flags = {
76
76
  compression: core_1.Flags.option({
77
77
  options: ['gzip', 'none', 'xz', 'zstd'],
@@ -87,6 +87,7 @@ class PackDeb extends core_1.Command {
87
87
  required: false,
88
88
  }),
89
89
  };
90
+ static summary = 'Pack CLI into debian package.';
90
91
  async run() {
91
92
  if (process.platform !== 'linux')
92
93
  throw new Error('debian packing must be run on linux');
@@ -7,5 +7,6 @@ export default class PackMacos extends Command {
7
7
  tarball: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
8
8
  targets: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
9
9
  };
10
+ static summary: string;
10
11
  run(): Promise<void>;
11
12
  }
@@ -150,7 +150,7 @@ exit 0
150
150
  },
151
151
  };
152
152
  class PackMacos extends core_1.Command {
153
- static description = 'Pack CLI into macOS .pkg';
153
+ static description = 'Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.';
154
154
  static flags = {
155
155
  'additional-cli': core_1.Flags.string({
156
156
  description: `An Oclif CLI other than the one listed in config.bin that should be made available to the user
@@ -172,6 +172,7 @@ the CLI should already exist in a directory named after the CLI that is the root
172
172
  description: 'Comma-separated targets to pack (e.g.: darwin-x64,darwin-arm64).',
173
173
  }),
174
174
  };
175
+ static summary = 'Pack CLI into macOS .pkg';
175
176
  async run() {
176
177
  if (process.platform !== 'darwin')
177
178
  this.error('must be run from macos');
@@ -26,7 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  const core_1 = require("@oclif/core");
27
27
  const Tarballs = __importStar(require("../../tarballs"));
28
28
  class PackTarballs extends core_1.Command {
29
- static description = 'This can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.';
29
+ static description = `This can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.
30
+
31
+ Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.`;
30
32
  static flags = {
31
33
  parallel: core_1.Flags.boolean({ description: 'Build tarballs in parallel.' }),
32
34
  root: core_1.Flags.string({ char: 'r', default: '.', description: 'Path to oclif CLI root.', required: true }),
@@ -224,7 +224,11 @@ exit $ret
224
224
  /* eslint-enable no-useless-escape */
225
225
  };
226
226
  class PackWin extends core_1.Command {
227
- static description = "This command will produce unsigned installers unless you supply WINDOWS_SIGNING_PASS (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) in the environment and have set the windows.name and windows.keypath properties in your package.json's oclif property.";
227
+ static description = `You need to have 7zip, nsis (makensis), and grep installed on your machine in order to run this command.
228
+
229
+ This command will produce unsigned installers unless you supply WINDOWS_SIGNING_PASS (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) in the environment and have set the windows.name and windows.keypath properties in your package.json's oclif property.
230
+
231
+ Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.`;
228
232
  static flags = {
229
233
  'additional-cli': core_1.Flags.string({
230
234
  description: `An Oclif CLI other than the one listed in config.bin that should be made available to the user
@@ -509,7 +509,7 @@
509
509
  "pack:deb": {
510
510
  "aliases": [],
511
511
  "args": {},
512
- "description": "Pack CLI into debian package.",
512
+ "description": "Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.",
513
513
  "flags": {
514
514
  "compression": {
515
515
  "char": "z",
@@ -553,6 +553,7 @@
553
553
  "pluginName": "oclif",
554
554
  "pluginType": "core",
555
555
  "strict": true,
556
+ "summary": "Pack CLI into debian package.",
556
557
  "enableJsonFlag": false,
557
558
  "isESM": false,
558
559
  "relativePath": [
@@ -565,7 +566,7 @@
565
566
  "pack:macos": {
566
567
  "aliases": [],
567
568
  "args": {},
568
- "description": "Pack CLI into macOS .pkg",
569
+ "description": "Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.",
569
570
  "flags": {
570
571
  "additional-cli": {
571
572
  "description": "An Oclif CLI other than the one listed in config.bin that should be made available to the user\nthe CLI should already exist in a directory named after the CLI that is the root of the tarball produced by \"oclif pack:tarballs\"",
@@ -609,6 +610,7 @@
609
610
  "pluginName": "oclif",
610
611
  "pluginType": "core",
611
612
  "strict": true,
613
+ "summary": "Pack CLI into macOS .pkg",
612
614
  "enableJsonFlag": false,
613
615
  "isESM": false,
614
616
  "relativePath": [
@@ -621,7 +623,7 @@
621
623
  "pack:tarballs": {
622
624
  "aliases": [],
623
625
  "args": {},
624
- "description": "This can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.",
626
+ "description": "This can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.\n\nAdd a pretarball script to your package.json if you need to run any scripts before the tarball is created.",
625
627
  "flags": {
626
628
  "parallel": {
627
629
  "description": "Build tarballs in parallel.",
@@ -683,7 +685,7 @@
683
685
  "pack:win": {
684
686
  "aliases": [],
685
687
  "args": {},
686
- "description": "This command will produce unsigned installers unless you supply WINDOWS_SIGNING_PASS (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) in the environment and have set the windows.name and windows.keypath properties in your package.json's oclif property.",
688
+ "description": "You need to have 7zip, nsis (makensis), and grep installed on your machine in order to run this command.\n\nThis command will produce unsigned installers unless you supply WINDOWS_SIGNING_PASS (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) in the environment and have set the windows.name and windows.keypath properties in your package.json's oclif property.\n\nAdd a pretarball script to your package.json if you need to run any scripts before the tarball is created.",
687
689
  "flags": {
688
690
  "additional-cli": {
689
691
  "description": "An Oclif CLI other than the one listed in config.bin that should be made available to the user\nthe CLI should already exist in a directory named after the CLI that is the root of the tarball produced by \"oclif pack:tarballs\".",
@@ -909,5 +911,5 @@
909
911
  ]
910
912
  }
911
913
  },
912
- "version": "4.7.0"
914
+ "version": "4.7.2"
913
915
  }
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.7.0",
4
+ "version": "4.7.2",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run.js"
@@ -29,7 +29,7 @@
29
29
  "lodash.template": "^4.5.0",
30
30
  "normalize-package-data": "^3.0.3",
31
31
  "semver": "^7.6.0",
32
- "sort-package-json": "^2.8.0",
32
+ "sort-package-json": "^2.10.0",
33
33
  "validate-npm-package-name": "^5.0.0"
34
34
  },
35
35
  "devDependencies": {