oclif 2.3.0 → 2.4.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.
@@ -1 +1 @@
1
- {"version":"2.3.0","commands":{"generate":{"id":"generate","description":"generate a new CLI\nThis will clone the template repo 'oclif/hello-world' and update package properties","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"name","description":"directory name of new project","required":true}]},"manifest":{"id":"manifest","description":"generates plugin manifest json","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin","default":"."}]},"promote":{"id":"promote","description":"promote CLI builds to a S3 release channel","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to the oclif CLI project root","required":true,"multiple":false,"default":"."},"version":{"name":"version","type":"option","description":"semantic version of the CLI to promote","required":true,"multiple":false},"sha":{"name":"sha","type":"option","description":"7-digit short git commit SHA of the CLI to promote","required":true,"multiple":false},"channel":{"name":"channel","type":"option","description":"which channel to promote to","required":true,"multiple":false,"default":"stable"},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to promote (e.g.: linux-arm,win32-x64)","multiple":false,"default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64,darwin-arm64"},"deb":{"name":"deb","type":"boolean","char":"d","description":"promote debian artifacts","allowNo":false},"macos":{"name":"macos","type":"boolean","char":"m","description":"promote macOS pkg","allowNo":false},"win":{"name":"win","type":"boolean","char":"w","description":"promote Windows exe","allowNo":false},"max-age":{"name":"max-age","type":"option","char":"a","description":"cache control max-age in seconds","multiple":false,"default":"86400"},"xz":{"name":"xz","type":"boolean","description":"also upload xz","allowNo":true},"indexes":{"name":"indexes","type":"boolean","description":"append the promoted urls into the index files","allowNo":false}},"args":[]},"readme":{"id":"readme","description":"adds commands to README.md in current directory\nThe readme must have any of the following tags inside of it for it to be replaced or else it will do nothing:\n# Usage\n<!-- usage -->\n# Commands\n<!-- commands -->\n\nCustomize the code URL prefix by setting oclif.repositoryPrefix in package.json.\n","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"output directory for multi docs","required":true,"multiple":false,"default":"docs"},"multi":{"name":"multi","type":"boolean","description":"create a different markdown page for each topic","allowNo":false}},"args":[]},"generate:command":{"id":"generate:command","description":"add a command to an existing CLI or plugin","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false}},"args":[{"name":"name","description":"name of command","required":true}]},"generate:hook":{"id":"generate:hook","description":"add a hook to an existing CLI or plugin","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false},"event":{"name":"event","type":"option","description":"event to run hook on","multiple":false,"default":"init"}},"args":[{"name":"name","description":"name of hook (snake_case)","required":true}]},"pack:deb":{"id":"pack:deb","description":"pack CLI into debian package","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"pack:macos":{"id":"pack:macos","description":"pack CLI into macOS .pkg","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"additional-cli":{"name":"additional-cli","type":"option","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\"","hidden":true,"multiple":false},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"pack:tarballs":{"id":"pack:tarballs","description":"packages oclif CLI into tarballs\n\nThis can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.\n","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to pack (e.g.: linux-arm,win32-x64)","multiple":false,"default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64,darwin-arm64"},"xz":{"name":"xz","type":"boolean","description":"also build xz","allowNo":true},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"pack:win":{"id":"pack:win","description":"create windows installer from oclif CLI\n\n This command requires WINDOWS_SIGNING (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) to be set in the environment","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"additional-cli":{"name":"additional-cli","type":"option","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\"","hidden":true,"multiple":false},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"upload:deb":{"id":"upload:deb","description":"upload deb package built with pack:deb","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."}},"args":[]},"upload:macos":{"id":"upload:macos","description":"upload macos installers built with pack:macos","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."}},"args":[]},"upload:tarballs":{"id":"upload:tarballs","description":"upload an oclif CLI to S3\n\n\"aws-sdk\" will need to be installed as a devDependency to upload.\n","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to upload (e.g.: linux-arm,win32-x64)","multiple":false,"default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64,darwin-arm64"},"xz":{"name":"xz","type":"boolean","description":"also upload xz","allowNo":true}},"args":[]},"upload:win":{"id":"upload:win","description":"upload windows installers built with pack:win","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."}},"args":[]}}}
1
+ {"version":"2.4.2","commands":{"generate":{"id":"generate","description":"generate a new CLI\nThis will clone the template repo 'oclif/hello-world' and update package properties","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"name","description":"directory name of new project","required":true}]},"manifest":{"id":"manifest","description":"generates plugin manifest json","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin","default":"."}]},"promote":{"id":"promote","description":"promote CLI builds to a S3 release channel","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to the oclif CLI project root","required":true,"multiple":false,"default":"."},"version":{"name":"version","type":"option","description":"semantic version of the CLI to promote","required":true,"multiple":false},"sha":{"name":"sha","type":"option","description":"7-digit short git commit SHA of the CLI to promote","required":true,"multiple":false},"channel":{"name":"channel","type":"option","description":"which channel to promote to","required":true,"multiple":false,"default":"stable"},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to promote (e.g.: linux-arm,win32-x64)","multiple":false,"default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64,darwin-arm64"},"deb":{"name":"deb","type":"boolean","char":"d","description":"promote debian artifacts","allowNo":false},"macos":{"name":"macos","type":"boolean","char":"m","description":"promote macOS pkg","allowNo":false},"win":{"name":"win","type":"boolean","char":"w","description":"promote Windows exe","allowNo":false},"max-age":{"name":"max-age","type":"option","char":"a","description":"cache control max-age in seconds","multiple":false,"default":"86400"},"xz":{"name":"xz","type":"boolean","description":"also upload xz","allowNo":true},"indexes":{"name":"indexes","type":"boolean","description":"append the promoted urls into the index files","allowNo":false}},"args":[]},"readme":{"id":"readme","description":"adds commands to README.md in current directory\nThe readme must have any of the following tags inside of it for it to be replaced or else it will do nothing:\n# Usage\n<!-- usage -->\n# Commands\n<!-- commands -->\n\nCustomize the code URL prefix by setting oclif.repositoryPrefix in package.json.\n","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"output directory for multi docs","required":true,"multiple":false,"default":"docs"},"multi":{"name":"multi","type":"boolean","description":"create a different markdown page for each topic","allowNo":false}},"args":[]},"generate:command":{"id":"generate:command","description":"add a command to an existing CLI or plugin","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false}},"args":[{"name":"name","description":"name of command","required":true}]},"generate:hook":{"id":"generate:hook","description":"add a hook to an existing CLI or plugin","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false},"event":{"name":"event","type":"option","description":"event to run hook on","multiple":false,"default":"init"}},"args":[{"name":"name","description":"name of hook (snake_case)","required":true}]},"pack:deb":{"id":"pack:deb","description":"pack CLI into debian package","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"pack:macos":{"id":"pack:macos","description":"pack CLI into macOS .pkg","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"additional-cli":{"name":"additional-cli","type":"option","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\"","hidden":true,"multiple":false},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"pack:tarballs":{"id":"pack:tarballs","description":"packages oclif CLI into tarballs\n\nThis can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.\n","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to pack (e.g.: linux-arm,win32-x64)","multiple":false,"default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64,darwin-arm64"},"xz":{"name":"xz","type":"boolean","description":"also build xz","allowNo":true},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"pack:win":{"id":"pack:win","description":"create windows installer from oclif CLI\n\n This command requires WINDOWS_SIGNING (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) to be set in the environment","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"additional-cli":{"name":"additional-cli","type":"option","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\"","hidden":true,"multiple":false},"tarball":{"name":"tarball","type":"option","char":"t","description":"optionally specify a path to a tarball already generated by NPM","required":false,"multiple":false}},"args":[]},"upload:deb":{"id":"upload:deb","description":"upload deb package built with pack:deb","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."}},"args":[]},"upload:macos":{"id":"upload:macos","description":"upload macos installers built with pack:macos","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."}},"args":[]},"upload:tarballs":{"id":"upload:tarballs","description":"upload an oclif CLI to S3\n\n\"aws-sdk\" will need to be installed as a devDependency to upload.\n","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to upload (e.g.: linux-arm,win32-x64)","multiple":false,"default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64,darwin-arm64"},"xz":{"name":"xz","type":"boolean","description":"also upload xz","allowNo":true}},"args":[]},"upload:win":{"id":"upload:win","description":"upload windows installers built with pack:win","strict":true,"pluginName":"oclif","pluginAlias":"oclif","pluginType":"core","aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"multiple":false,"default":"."}},"args":[]}}}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.4.2](https://github.com/oclif/oclif/compare/v2.4.1...v2.4.2) (2022-02-01)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * remove IManifest ([#823](https://github.com/oclif/oclif/issues/823)) ([31f1f07](https://github.com/oclif/oclif/commit/31f1f07480d4f59db45da35ff0926bc44665cc6f))
11
+
12
+ ### [2.4.1](https://github.com/oclif/oclif/compare/v2.4.0...v2.4.1) (2022-01-31)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * update error messages ([#806](https://github.com/oclif/oclif/issues/806)) ([7a63b49](https://github.com/oclif/oclif/commit/7a63b4987bd8d6e4f2f3211a05248296e5f6d090))
18
+
19
+ ## [2.4.0](https://github.com/oclif/oclif/compare/v2.3.1...v2.4.0) (2022-01-27)
20
+
21
+
22
+ ### Features
23
+
24
+ * remove cli-ux ([#804](https://github.com/oclif/oclif/issues/804)) ([fd9d1fb](https://github.com/oclif/oclif/commit/fd9d1fb5672df197c559c6044d51797ad6fe7ffd))
25
+
26
+ ### [2.3.1](https://github.com/oclif/oclif/compare/v2.3.0...v2.3.1) (2022-01-27)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * remove accidental dep ([8e5435f](https://github.com/oclif/oclif/commit/8e5435fb84febd950be387849f921a76a39f8eb0))
32
+
5
33
  ## [2.3.0](https://github.com/oclif/oclif/compare/v2.2.0...v2.3.0) (2022-01-20)
6
34
 
7
35
 
package/README.md CHANGED
@@ -146,7 +146,7 @@ DESCRIPTION
146
146
  This will clone the template repo 'oclif/hello-world' and update package properties
147
147
  ```
148
148
 
149
- _See code: [src/commands/generate.ts](https://github.com/oclif/oclif/blob/v2.2.0/src/commands/generate.ts)_
149
+ _See code: [src/commands/generate.ts](https://github.com/oclif/oclif/blob/v2.4.1/src/commands/generate.ts)_
150
150
 
151
151
  ## `oclif generate command NAME`
152
152
 
@@ -220,7 +220,7 @@ DESCRIPTION
220
220
  generates plugin manifest json
221
221
  ```
222
222
 
223
- _See code: [src/commands/manifest.ts](https://github.com/oclif/oclif/blob/v2.2.0/src/commands/manifest.ts)_
223
+ _See code: [src/commands/manifest.ts](https://github.com/oclif/oclif/blob/v2.4.1/src/commands/manifest.ts)_
224
224
 
225
225
  ## `oclif pack deb`
226
226
 
@@ -321,7 +321,7 @@ DESCRIPTION
321
321
  promote CLI builds to a S3 release channel
322
322
  ```
323
323
 
324
- _See code: [src/commands/promote.ts](https://github.com/oclif/oclif/blob/v2.2.0/src/commands/promote.ts)_
324
+ _See code: [src/commands/promote.ts](https://github.com/oclif/oclif/blob/v2.4.1/src/commands/promote.ts)_
325
325
 
326
326
  ## `oclif readme`
327
327
 
@@ -351,7 +351,7 @@ DESCRIPTION
351
351
  Customize the code URL prefix by setting oclif.repositoryPrefix in package.json.
352
352
  ```
353
353
 
354
- _See code: [src/commands/readme.ts](https://github.com/oclif/oclif/blob/v2.2.0/src/commands/readme.ts)_
354
+ _See code: [src/commands/readme.ts](https://github.com/oclif/oclif/blob/v2.4.1/src/commands/readme.ts)_
355
355
 
356
356
  ## `oclif upload deb`
357
357
 
package/lib/aws.d.ts CHANGED
@@ -18,6 +18,8 @@ declare const _default: {
18
18
  headObject: (options: S3.Types.HeadObjectRequest) => Promise<S3.HeadObjectOutput>;
19
19
  copyObject: (options: S3.Types.CopyObjectRequest) => Promise<unknown>;
20
20
  getObject: (options: S3.Types.GetObjectRequest) => Promise<S3.GetObjectOutput>;
21
+ listObjects: (options: S3.Types.ListObjectsV2Request) => Promise<S3.ListObjectsV2Output>;
22
+ deleteObjects: (options: S3.Types.DeleteObjectsRequest) => Promise<S3.DeleteObjectsOutput>;
21
23
  };
22
24
  };
23
25
  export default _default;
package/lib/aws.js CHANGED
@@ -89,6 +89,22 @@ exports.default = {
89
89
  resolve(data);
90
90
  });
91
91
  }),
92
+ listObjects: (options) => new Promise((resolve, reject) => {
93
+ debug('listObjects', `s3://${options.Bucket}/${options.Prefix}`);
94
+ aws.s3.listObjectsV2(options, (err, objects) => {
95
+ if (err)
96
+ reject(err);
97
+ resolve(objects);
98
+ });
99
+ }),
100
+ deleteObjects: (options) => new Promise((resolve, reject) => {
101
+ debug('deleteObjects', `s3://${options.Bucket}`);
102
+ aws.s3.deleteObjects(options, (err, deletedObjects) => {
103
+ if (err)
104
+ reject(err);
105
+ resolve(deletedObjects);
106
+ });
107
+ }),
92
108
  };
93
109
  },
94
110
  };
@@ -92,5 +92,5 @@ exports.default = PackDeb;
92
92
  PackDeb.description = 'pack CLI into debian package';
93
93
  PackDeb.flags = {
94
94
  root: core_1.Flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
95
- tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false })
95
+ tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false }),
96
96
  };
@@ -147,5 +147,5 @@ PackMacos.flags = {
147
147
  root: core_1.Flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
148
148
  'additional-cli': core_1.Flags.string({ description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user
149
149
  the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"`, hidden: true }),
150
- tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false })
150
+ tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false }),
151
151
  };
@@ -15,7 +15,7 @@ class PackTarballs extends core_1.Command {
15
15
  throw new Error('Please specify one or more valid targets.');
16
16
  }
17
17
  await Tarballs.build(buildConfig, {
18
- tarball: flags.tarball
18
+ tarball: flags.tarball,
19
19
  });
20
20
  qq.cd(prevCwd);
21
21
  }
@@ -32,5 +32,5 @@ PackTarballs.flags = {
32
32
  default: Tarballs.TARGETS.join(','),
33
33
  }),
34
34
  xz: core_1.Flags.boolean({ description: 'also build xz', allowNo: true, default: true }),
35
- tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false })
35
+ tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false }),
36
36
  };
@@ -270,5 +270,5 @@ PackWin.flags = {
270
270
  root: core_1.Flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
271
271
  'additional-cli': core_1.Flags.string({ description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user
272
272
  the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"`, hidden: true }),
273
- tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false })
273
+ tarball: core_1.Flags.string({ char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false }),
274
274
  };
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const cli_ux_1 = require("cli-ux");
5
4
  const path = require("path");
6
5
  const aws_1 = require("../aws");
7
6
  const Tarballs = require("../tarballs");
@@ -131,7 +130,7 @@ class Promote extends core_1.Command {
131
130
  // eslint-disable-next-line no-await-in-loop
132
131
  if (flags.indexes)
133
132
  await (0, version_indexes_1.appendToIndex)(Object.assign(Object.assign({}, indexDefaults), { originalUrl: winCopySource, filename: unversionedExe }));
134
- cli_ux_1.cli.action.stop('successfully');
133
+ core_1.CliUx.ux.action.stop('successfully');
135
134
  }
136
135
  }
137
136
  // copy debian artifacts
@@ -18,7 +18,7 @@ class UploadDeb extends core_1.Command {
18
18
  };
19
19
  if (!await qq.exists(dist('Release')))
20
20
  this.error('Cannot find debian artifacts', {
21
- suggestions: ['Run "oclif-dev pack:deb" before uploading'],
21
+ suggestions: ['Run "oclif pack deb" before uploading'],
22
22
  });
23
23
  const cloudKeyBase = (0, upload_util_1.commitAWSDir)(config.pjson.version, buildConfig.gitSha, s3Config);
24
24
  const upload = (file) => {
@@ -23,7 +23,7 @@ class UploadMacos extends core_1.Command {
23
23
  await aws_1.default.s3.uploadFile(localPkg, Object.assign(Object.assign({}, S3Options), { CacheControl: 'max-age=86400', Key: cloudKey }));
24
24
  else
25
25
  this.error('Cannot find macOS pkg', {
26
- suggestions: ['Run "oclif-dev pack:macos" before uploading'],
26
+ suggestions: ['Run "oclif pack macos" before uploading'],
27
27
  });
28
28
  (0, log_1.log)(`done uploading macos pkg for v${config.version}-${buildConfig.gitSha}`);
29
29
  }
@@ -22,7 +22,7 @@ class UploadWin extends core_1.Command {
22
22
  // eslint-disable-next-line no-await-in-loop
23
23
  if (!await qq.exists(localKey))
24
24
  this.error(`Cannot find Windows exe for ${arch}`, {
25
- suggestions: ['Run "oclif-dev pack:win" before uploading'],
25
+ suggestions: ['Run "oclif pack win" before uploading'],
26
26
  });
27
27
  }
28
28
  const cloudKeyBase = (0, upload_util_1.commitAWSDir)(config.pjson.version, buildConfig.gitSha, s3Config);
package/lib/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { run } from '@oclif/core';
2
- export { IManifest } from './tarballs';
package/lib/log.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.log = exports.debug = void 0;
4
- const cli_ux_1 = require("cli-ux");
4
+ const core_1 = require("@oclif/core");
5
5
  const qq = require("qqjs");
6
6
  const util = require("util");
7
7
  exports.debug = require('debug')('oclif');
8
8
  exports.debug.new = (name) => require('debug')(`oclif:${name}`);
9
9
  function log(format, ...args) {
10
10
  args = args.map((arg) => qq.prettifyPaths(arg));
11
- exports.debug.enabled ? (0, exports.debug)(format, ...args) : cli_ux_1.default.log(`oclif: ${util.format(format, ...args)}`);
11
+ exports.debug.enabled ? (0, exports.debug)(format, ...args) : core_1.CliUx.ux.log(`oclif: ${util.format(format, ...args)}`);
12
12
  }
13
13
  exports.log = log;
@@ -22,20 +22,6 @@ export interface BuildConfig {
22
22
  }): string;
23
23
  dist(input: string): string;
24
24
  }
25
- export interface IManifest {
26
- version: string;
27
- sha: string;
28
- gz: string;
29
- xz?: string;
30
- sha256gz: string;
31
- sha256xz?: string;
32
- baseDir: string;
33
- rollout?: number;
34
- node: {
35
- compatible: string;
36
- recommended: string;
37
- };
38
- }
39
25
  export declare function gitSha(cwd: string, options?: {
40
26
  short?: boolean;
41
27
  }): Promise<string>;
@@ -7,7 +7,6 @@ const qq = require("qqjs");
7
7
  const semver = require("semver");
8
8
  const util_1 = require("../util");
9
9
  const upload_util_1 = require("../upload-util");
10
- const cli_ux_1 = require("cli-ux");
11
10
  exports.TARGETS = [
12
11
  'linux-x64',
13
12
  'linux-arm',
@@ -38,7 +37,7 @@ async function buildConfig(root, options = {}) {
38
37
  const targets = (0, util_1.compact)(options.targets || updateConfig.node.targets || exports.TARGETS)
39
38
  .filter(t => {
40
39
  if (t === 'darwin-arm64' && semver.lt(nodeVersion, '16.0.0')) {
41
- cli_ux_1.cli.warn('darwin-arm64 is only supported for node >=16.0.0. Skipping...');
40
+ core_1.CliUx.ux.warn('darwin-arm64 is only supported for node >=16.0.0. Skipping...');
42
41
  return false;
43
42
  }
44
43
  return true;
package/package.json CHANGED
@@ -1,23 +1,22 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "2.3.0",
4
+ "version": "2.4.2",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run"
8
8
  },
9
9
  "bugs": "https://github.com/oclif/oclif/issues",
10
10
  "dependencies": {
11
- "@oclif/core": "^1.0.11",
11
+ "@oclif/core": "^1.3.0",
12
12
  "@oclif/plugin-help": "^5.1.10",
13
- "@oclif/plugin-not-found": "^2.2.3",
14
- "@oclif/plugin-warn-if-update-available": "^2.0.3",
15
- "cli-ux": "^6.0.8",
13
+ "@oclif/plugin-not-found": "^2.2.4",
14
+ "@oclif/plugin-warn-if-update-available": "^2.0.4",
15
+ "aws-sdk": "^2.1064.0",
16
16
  "debug": "^4.3.3",
17
17
  "find-yarn-workspace-root": "^2.0.0",
18
18
  "fs-extra": "^8.1",
19
19
  "github-slugger": "^1.2.1",
20
- "global": "^4.4.0",
21
20
  "lodash": "^4.17.11",
22
21
  "normalize-package-data": "^3.0.3",
23
22
  "nps-utils": "^1.7.0",
@@ -45,7 +44,6 @@
45
44
  "@types/write-json-file": "^3.2.1",
46
45
  "@types/yeoman-generator": "^5.2.8",
47
46
  "@types/yosay": "^2.0.1",
48
- "aws-sdk": "^2.1048.0",
49
47
  "chai": "^4.2.0",
50
48
  "conventional-changelog-cli": "^2.2.2",
51
49
  "eslint": "^7.3.2",
@@ -60,7 +58,7 @@
60
58
  "shelljs": "^0.8.5",
61
59
  "shx": "^0.3.3",
62
60
  "tmp": "^0.2.1",
63
- "ts-node": "^9.0.0",
61
+ "ts-node": "^10.4.0",
64
62
  "typescript": "4.5.4"
65
63
  },
66
64
  "resolutions": {
@@ -95,8 +93,7 @@
95
93
  "dirname": "oclif",
96
94
  "topicSeparator": " ",
97
95
  "macos": {
98
- "identifier": "com.oclif.cli",
99
- "sign": "Developer ID Installer: Heroku INC"
96
+ "identifier": "com.oclif.cli"
100
97
  },
101
98
  "update": {
102
99
  "autoupdate": {
@@ -107,7 +104,11 @@
107
104
  "version": "12.12.0"
108
105
  },
109
106
  "s3": {
110
- "bucket": "oclif-staging",
107
+ "bucket": "dfc-data-production",
108
+ "indexVersionLimit": 20,
109
+ "folder": "media/salesforce-cli/oclif-testing",
110
+ "acl": " ",
111
+ "host": "https://developer.salesforce.com",
111
112
  "xz": true
112
113
  }
113
114
  },