oclif 2.4.0 → 2.4.4

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.4.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.4","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.4](https://github.com/oclif/oclif/compare/v2.4.3...v2.4.4) (2022-02-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix tarball packing in paths with spaces ([#825](https://github.com/oclif/oclif/issues/825)) ([#826](https://github.com/oclif/oclif/issues/826)) ([9e12c70](https://github.com/oclif/oclif/commit/9e12c70be6c85a9de7fff991e2c2d6574fd6173d))
11
+
12
+ ### [2.4.3](https://github.com/oclif/oclif/compare/v2.4.2...v2.4.3) (2022-02-01)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * remove dependency on nps-utils ([#822](https://github.com/oclif/oclif/issues/822)) ([5c01f53](https://github.com/oclif/oclif/commit/5c01f53930ce56a476ba1f8abd1208cbc5b91dc2))
18
+
19
+ ### [2.4.2](https://github.com/oclif/oclif/compare/v2.4.1...v2.4.2) (2022-02-01)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * remove IManifest ([#823](https://github.com/oclif/oclif/issues/823)) ([31f1f07](https://github.com/oclif/oclif/commit/31f1f07480d4f59db45da35ff0926bc44665cc6f))
25
+
26
+ ### [2.4.1](https://github.com/oclif/oclif/compare/v2.4.0...v2.4.1) (2022-01-31)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * update error messages ([#806](https://github.com/oclif/oclif/issues/806)) ([7a63b49](https://github.com/oclif/oclif/commit/7a63b4987bd8d6e4f2f3211a05248296e5f6d090))
32
+
5
33
  ## [2.4.0](https://github.com/oclif/oclif/compare/v2.3.1...v2.4.0) (2022-01-27)
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.3.1/src/commands/generate.ts)_
149
+ _See code: [src/commands/generate.ts](https://github.com/oclif/oclif/blob/v2.4.3/src/commands/generate.ts)_
150
150
 
151
151
  ## `oclif generate command NAME`
152
152
 
@@ -203,7 +203,7 @@ DESCRIPTION
203
203
  Display help for oclif.
204
204
  ```
205
205
 
206
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.10/src/commands/help.ts)_
206
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.11/src/commands/help.ts)_
207
207
 
208
208
  ## `oclif manifest [PATH]`
209
209
 
@@ -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.3.1/src/commands/manifest.ts)_
223
+ _See code: [src/commands/manifest.ts](https://github.com/oclif/oclif/blob/v2.4.3/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.3.1/src/commands/promote.ts)_
324
+ _See code: [src/commands/promote.ts](https://github.com/oclif/oclif/blob/v2.4.3/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.3.1/src/commands/readme.ts)_
354
+ _See code: [src/commands/readme.ts](https://github.com/oclif/oclif/blob/v2.4.3/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
  };
@@ -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';
@@ -15,7 +15,7 @@ const pack = async (from, to) => {
15
15
  (0, log_1.log)(`packing tarball from ${qq.prettifyPaths(from)} to ${qq.prettifyPaths(to)}`);
16
16
  await (to.endsWith('gz') ?
17
17
  qq.x('tar', ['czf', to, path.basename(from)]) :
18
- qq.x(`tar c ${path.basename(from)} | xz > ${to}`));
18
+ qq.x(`tar c "${path.basename(from)}" | xz > "${to}"`));
19
19
  qq.cd(prevCwd);
20
20
  };
21
21
  async function build(c, options = {}) {
@@ -31,7 +31,7 @@ async function build(c, options = {}) {
31
31
  tarball = path.basename(tarball);
32
32
  tarball = qq.join([c.workspace(), tarball]);
33
33
  qq.cd(c.workspace());
34
- await qq.x(`tar -xzf ${tarball}`);
34
+ await qq.x(`tar -xzf "${tarball}"`);
35
35
  // eslint-disable-next-line no-await-in-loop
36
36
  for (const f of await qq.ls('package', { fullpath: true }))
37
37
  await qq.mv(f, '.');
@@ -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>;
@@ -41,7 +41,7 @@ async function fetchNodeBinary({ nodeVersion, output, platform, arch, tmp }) {
41
41
  const basedir = path.dirname(tarball);
42
42
  await qq.mkdirp(basedir);
43
43
  await qq.download(url, tarball);
44
- await qq.x(`grep ${path.basename(tarball)} ${shasums} | shasum -a 256 -c -`, { cwd: basedir });
44
+ await qq.x(`grep "${path.basename(tarball)}" "${shasums}" | shasum -a 256 -c -`, { cwd: basedir });
45
45
  };
46
46
  const extract = async () => {
47
47
  (0, log_1.log)(`extracting ${nodeBase}`);
@@ -51,12 +51,12 @@ async function fetchNodeBinary({ nodeVersion, output, platform, arch, tmp }) {
51
51
  await qq.mkdirp(path.dirname(cache));
52
52
  if (platform === 'win32') {
53
53
  qq.pushd(nodeTmp);
54
- await qq.x(`7z x -bd -y ${tarball} > /dev/null`);
54
+ await qq.x(`7z x -bd -y "${tarball}" > /dev/null`);
55
55
  await qq.mv([nodeBase, 'node.exe'], cache);
56
56
  qq.popd();
57
57
  }
58
58
  else {
59
- await qq.x(`tar -C ${tmp}/node -xJf ${tarball}`);
59
+ await qq.x(`tar -C "${tmp}/node" -xJf "${tarball}"`);
60
60
  await qq.mv([nodeTmp, nodeBase, 'bin/node'], cache);
61
61
  }
62
62
  };
package/package.json CHANGED
@@ -1,29 +1,30 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "2.4.0",
4
+ "version": "2.4.4",
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.2.0",
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",
11
+ "@oclif/core": "^1.3.0",
12
+ "@oclif/plugin-help": "^5.1.11",
13
+ "@oclif/plugin-not-found": "^2.3.1",
14
+ "@oclif/plugin-warn-if-update-available": "^2.0.4",
15
+ "aws-sdk": "^2.1069.0",
16
+ "concurrently": "^7.0.0",
15
17
  "debug": "^4.3.3",
16
18
  "find-yarn-workspace-root": "^2.0.0",
17
19
  "fs-extra": "^8.1",
18
- "github-slugger": "^1.2.1",
19
- "lodash": "^4.17.11",
20
+ "github-slugger": "^1.4.0",
21
+ "lodash": "^4.17.21",
20
22
  "normalize-package-data": "^3.0.3",
21
- "nps-utils": "^1.7.0",
22
- "qqjs": "^0.3.10",
23
+ "qqjs": "^0.3.11",
23
24
  "semver": "^7.3.5",
24
25
  "tslib": "^2.3.1",
25
- "yeoman-environment": "^3.5.1",
26
- "yeoman-generator": "^5.5.2",
26
+ "yeoman-environment": "^3.9.1",
27
+ "yeoman-generator": "^5.6.1",
27
28
  "yosay": "^2.0.2"
28
29
  },
29
30
  "devDependencies": {
@@ -33,33 +34,32 @@
33
34
  "@types/execa": "^0.9.0",
34
35
  "@types/fs-extra": "^9.0",
35
36
  "@types/lodash": "^4.14.178",
36
- "@types/lodash.template": "^4.4.6",
37
+ "@types/lodash.template": "^4.5.0",
37
38
  "@types/mocha": "^8.2.3",
38
- "@types/node": "^14.18.4",
39
+ "@types/node": "^14.18.10",
39
40
  "@types/read-pkg": "^5.1.0",
40
41
  "@types/semver": "^7.3.9",
41
42
  "@types/shelljs": "^0.8.11",
42
- "@types/supports-color": "^7.2.0",
43
+ "@types/supports-color": "^7.2.1",
43
44
  "@types/write-json-file": "^3.2.1",
44
- "@types/yeoman-generator": "^5.2.8",
45
+ "@types/yeoman-generator": "^5.2.9",
45
46
  "@types/yosay": "^2.0.1",
46
- "aws-sdk": "^2.1048.0",
47
- "chai": "^4.2.0",
47
+ "chai": "^4.3.6",
48
48
  "conventional-changelog-cli": "^2.2.2",
49
- "eslint": "^7.3.2",
49
+ "eslint": "^7.32.0",
50
50
  "eslint-config-oclif": "^4.0.0",
51
51
  "eslint-config-oclif-typescript": "^1.0.2",
52
52
  "execa": "^0.11.0",
53
53
  "fancy-test": "^1.4.10",
54
- "globby": "^11.0.1",
55
- "mocha": "^9.1.3",
54
+ "globby": "^11.1.0",
55
+ "mocha": "^9.2.0",
56
56
  "npm-run-path": "^4.0.1",
57
- "nps": "^5.9.3",
57
+ "nps": "^5.10.0",
58
58
  "shelljs": "^0.8.5",
59
- "shx": "^0.3.3",
59
+ "shx": "^0.3.4",
60
60
  "tmp": "^0.2.1",
61
- "ts-node": "^9.0.0",
62
- "typescript": "4.5.4"
61
+ "ts-node": "^10.4.0",
62
+ "typescript": "4.5.5"
63
63
  },
64
64
  "resolutions": {
65
65
  "colors": "1.4.0"
@@ -93,8 +93,7 @@
93
93
  "dirname": "oclif",
94
94
  "topicSeparator": " ",
95
95
  "macos": {
96
- "identifier": "com.oclif.cli",
97
- "sign": "Developer ID Installer: Heroku INC"
96
+ "identifier": "com.oclif.cli"
98
97
  },
99
98
  "update": {
100
99
  "autoupdate": {
@@ -105,7 +104,11 @@
105
104
  "version": "12.12.0"
106
105
  },
107
106
  "s3": {
108
- "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",
109
112
  "xz": true
110
113
  }
111
114
  },
@@ -122,13 +125,15 @@
122
125
  "scripts": {
123
126
  "build": "shx rm -rf lib && tsc",
124
127
  "devcli:lint": "eslint . --ext .ts --config .eslintrc",
125
- "devcli:test": "mocha --forbid-only \"test/*.test.ts\"",
128
+ "devcli:test": "mocha --forbid-only \"test/unit/*.test.ts\"",
126
129
  "devcli": "yarn build --noEmit && yarn run devcli:test && yarn run devcli:lint",
127
130
  "lint": "nps lint",
128
131
  "postpack": "shx rm .oclif.manifest.json",
129
132
  "posttest": "yarn run lint",
130
133
  "prepack": "shx rm -rf lib && tsc && bin/dev manifest .",
131
- "test": "nps test",
134
+ "test": "nps test && yarn test:unit && yarn test:integration",
135
+ "test:integration": "mocha --forbid-only \"test/integration/*.test.ts\"",
136
+ "test:unit": "mocha --forbid-only \"test/unit/*.test.ts\"",
132
137
  "version": "bin/dev readme && git add README.md"
133
138
  },
134
139
  "publishConfig": {