oclif 1.18.2-dev.4 → 1.18.2-dev.5
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.
- package/.oclif.manifest.json +1 -1
- package/CHANGELOG.md +3 -1
- package/README.md +5 -5
- package/lib/commands/pack/macos.js +2 -2
- package/lib/commands/pack/win.js +1 -1
- package/lib/commands/upload/tarballs.js +0 -2
- package/package.json +1 -1
package/.oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.18.2-dev.
|
|
1
|
+
{"version":"1.18.2-dev.5","commands":{"base":{"id":"base","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"defaults":{"name":"defaults","type":"boolean","description":"use defaults for every setting","allowNo":false},"options":{"name":"options","type":"option","description":"(yarn|typescript|eslint|mocha)"},"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false}},"args":[{"name":"path","description":"path to project, defaults to current directory","required":false}]},"command":{"id":"command","description":"add a command to an existing CLI or plugin","pluginName":"oclif","pluginType":"core","aliases":[],"flags":{"defaults":{"name":"defaults","type":"boolean","description":"use defaults for every setting","allowNo":false},"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false}},"args":[{"name":"name","description":"name of command","required":true}]},"hook":{"id":"hook","description":"add a hook to an existing CLI or plugin","pluginName":"oclif","pluginType":"core","aliases":[],"flags":{"defaults":{"name":"defaults","type":"boolean","description":"use defaults for every setting","allowNo":false},"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false},"event":{"name":"event","type":"option","description":"event to run hook on","default":"init"}},"args":[{"name":"name","description":"name of hook (snake_case)","required":true}]},"manifest":{"id":"manifest","description":"generates plugin manifest json","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin","default":"."}]},"multi":{"id":"multi","description":"generate a new multi-command CLI","pluginName":"oclif","pluginType":"core","aliases":[],"flags":{"defaults":{"name":"defaults","type":"boolean","description":"use defaults for every setting","allowNo":false},"options":{"name":"options","type":"option","description":"(yarn|typescript|eslint|mocha)"},"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false}},"args":[{"name":"path","description":"path to project, defaults to current directory","required":false}]},"plugin":{"id":"plugin","description":"create a new CLI plugin","pluginName":"oclif","pluginType":"core","aliases":[],"flags":{"defaults":{"name":"defaults","type":"boolean","description":"use defaults for every setting","allowNo":false},"options":{"name":"options","type":"option","description":"(yarn|typescript|eslint|mocha)"},"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false}},"args":[{"name":"path","description":"path to project, defaults to current directory","required":false}]},"promote":{"id":"promote","description":"promote CLI builds to a S3 release channel","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to the oclif CLI project root","required":true,"default":"."},"version":{"name":"version","type":"option","description":"semantic version of the CLI to promote","required":true},"sha":{"name":"sha","type":"option","description":"7-digit short git commit SHA of the CLI to promote","required":true},"channel":{"name":"channel","type":"option","description":"which channel to promote to","required":true,"default":"stable"},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to promote (e.g.: linux-arm,win32-x64)","default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64"},"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","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","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"output directory for multi docs","required":true,"default":"docs"},"multi":{"name":"multi","type":"boolean","description":"create a different markdown page for each topic","allowNo":false}},"args":[]},"single":{"id":"single","description":"generate a new single-command CLI","pluginName":"oclif","pluginType":"core","aliases":[],"flags":{"defaults":{"name":"defaults","type":"boolean","description":"use defaults for every setting","allowNo":false},"options":{"name":"options","type":"option","description":"(yarn|typescript|eslint|mocha)"},"force":{"name":"force","type":"boolean","description":"overwrite existing files","allowNo":false}},"args":[{"name":"path","description":"path to project, defaults to current directory","required":false}]},"pack:deb":{"id":"pack:deb","description":"pack CLI into debian package","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"default":"."}},"args":[]},"pack:macos":{"id":"pack:macos","description":"pack CLI into macOS .pkg","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"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}},"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","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"default":"."},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to pack (e.g.: linux-arm,win32-x64)","default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64"},"xz":{"name":"xz","type":"boolean","description":"also build xz","allowNo":true}},"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","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"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}},"args":[]},"upload:deb":{"id":"upload:deb","description":"upload deb package built with pack:deb","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"default":"."}},"args":[]},"upload:macos":{"id":"upload:macos","description":"upload macos installers built with pack:macos","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"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","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"default":"."},"targets":{"name":"targets","type":"option","char":"t","description":"comma-separated targets to upload (e.g.: linux-arm,win32-x64)","default":"linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64"},"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","pluginName":"oclif","pluginType":"core","hidden":true,"aliases":[],"flags":{"root":{"name":"root","type":"option","char":"r","description":"path to oclif CLI root","required":true,"default":"."}},"args":[]}}}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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
|
-
### [1.18.2-dev.
|
|
5
|
+
### [1.18.2-dev.5](https://github.com/oclif/oclif/compare/v1.18.1...v1.18.2-dev.5) (2021-10-30)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
### ⚠ BREAKING CHANGES
|
|
@@ -19,10 +19,12 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
19
19
|
|
|
20
20
|
* allow additional oclif CLIs, not executables in general ([c009e8e](https://github.com/oclif/oclif/commit/c009e8efec46401162364d815863969a567a67ec))
|
|
21
21
|
* build and find tarballs using the same version ([44c4177](https://github.com/oclif/oclif/commit/44c41774c262c85eebd1a0eb8afce07edfd5ef8c))
|
|
22
|
+
* hide additional-cli flags ([f34fdc3](https://github.com/oclif/oclif/commit/f34fdc3154aff2af93ccf94e9bb8500ccc3f8be7))
|
|
22
23
|
* lint ([110e659](https://github.com/oclif/oclif/commit/110e6597c3fe41a1453c0034b166b23419324b71))
|
|
23
24
|
* release new dev version ([cb63e9c](https://github.com/oclif/oclif/commit/cb63e9c508dbbf7dea0ed44a3bd082be7fbc122b))
|
|
24
25
|
* tests ([7a68684](https://github.com/oclif/oclif/commit/7a68684cd25ba4b770d16904fc22eb266c0c4b1f))
|
|
25
26
|
* upload tarballs using same version as they were built with ([ec61f18](https://github.com/oclif/oclif/commit/ec61f18b83987bbd0bf7c4dc583e3e891e3a29d3))
|
|
27
|
+
* use same version to produce and upload macos pkg ([77f9c8f](https://github.com/oclif/oclif/commit/77f9c8f0f701c599b1a524eddf9b4a8b75c7feb1))
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
### build
|
package/README.md
CHANGED
|
@@ -146,7 +146,7 @@ OPTIONS
|
|
|
146
146
|
--force overwrite existing files
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
_See code: [src/commands/command.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.
|
|
149
|
+
_See code: [src/commands/command.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.5/src/commands/command.ts)_
|
|
150
150
|
|
|
151
151
|
## `oclif help [COMMAND]`
|
|
152
152
|
|
|
@@ -182,7 +182,7 @@ OPTIONS
|
|
|
182
182
|
--force overwrite existing files
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
_See code: [src/commands/hook.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.
|
|
185
|
+
_See code: [src/commands/hook.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.5/src/commands/hook.ts)_
|
|
186
186
|
|
|
187
187
|
## `oclif multi [PATH]`
|
|
188
188
|
|
|
@@ -201,7 +201,7 @@ OPTIONS
|
|
|
201
201
|
--options=options (yarn|typescript|eslint|mocha)
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
-
_See code: [src/commands/multi.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.
|
|
204
|
+
_See code: [src/commands/multi.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.5/src/commands/multi.ts)_
|
|
205
205
|
|
|
206
206
|
## `oclif plugin [PATH]`
|
|
207
207
|
|
|
@@ -220,7 +220,7 @@ OPTIONS
|
|
|
220
220
|
--options=options (yarn|typescript|eslint|mocha)
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
-
_See code: [src/commands/plugin.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.
|
|
223
|
+
_See code: [src/commands/plugin.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.5/src/commands/plugin.ts)_
|
|
224
224
|
|
|
225
225
|
## `oclif single [PATH]`
|
|
226
226
|
|
|
@@ -239,7 +239,7 @@ OPTIONS
|
|
|
239
239
|
--options=options (yarn|typescript|eslint|mocha)
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
_See code: [src/commands/single.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.
|
|
242
|
+
_See code: [src/commands/single.ts](https://github.com/oclif/oclif/blob/v1.18.2-dev.5/src/commands/single.ts)_
|
|
243
243
|
<!-- commandsstop -->
|
|
244
244
|
|
|
245
245
|
# 🏭 Related Repositories
|
|
@@ -107,7 +107,7 @@ class PackMacos extends command_1.Command {
|
|
|
107
107
|
const macos = c.macos;
|
|
108
108
|
const packageIdentifier = macos.identifier;
|
|
109
109
|
await Tarballs.build(buildConfig, { platform: 'darwin', pack: false });
|
|
110
|
-
const templateKey = upload_util_1.templateShortKey('macos', { bin: config.bin, version:
|
|
110
|
+
const templateKey = upload_util_1.templateShortKey('macos', { bin: config.bin, version: buildConfig.version, sha: buildConfig.gitSha });
|
|
111
111
|
const dist = buildConfig.dist(`macos/${templateKey}`);
|
|
112
112
|
await qq.emptyDir(path.dirname(dist));
|
|
113
113
|
const scriptsDir = qq.join(buildConfig.tmp, 'macos/scripts');
|
|
@@ -147,5 +147,5 @@ PackMacos.description = 'pack CLI into macOS .pkg';
|
|
|
147
147
|
PackMacos.flags = {
|
|
148
148
|
root: command_1.flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
|
|
149
149
|
'additional-cli': command_1.flags.string({ description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user
|
|
150
|
-
the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"
|
|
150
|
+
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 }),
|
|
151
151
|
};
|
package/lib/commands/pack/win.js
CHANGED
|
@@ -262,5 +262,5 @@ PackWin.description = `create windows installer from oclif CLI
|
|
|
262
262
|
PackWin.flags = {
|
|
263
263
|
root: command_1.flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
|
|
264
264
|
'additional-cli': command_1.flags.string({ description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user
|
|
265
|
-
the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"
|
|
265
|
+
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 }),
|
|
266
266
|
};
|
|
@@ -16,14 +16,12 @@ class UploadTarballs extends command_1.Command {
|
|
|
16
16
|
const { s3Config, dist, version, config, xz } = buildConfig;
|
|
17
17
|
// fail early if targets are not built
|
|
18
18
|
for (const target of buildConfig.targets) {
|
|
19
|
-
log_1.log(`Looking for ${config.bin}-v${config.version}-${buildConfig.gitSha}-${target.platform}-${target.arch}.tar.gz ...`);
|
|
20
19
|
const tarball = dist(upload_util_1.templateShortKey('versioned', Object.assign({ ext: '.tar.gz', bin: config.bin, version: config.version, sha: buildConfig.gitSha }, target)));
|
|
21
20
|
// eslint-disable-next-line no-await-in-loop
|
|
22
21
|
if (!await qq.exists(tarball))
|
|
23
22
|
this.error(`Cannot find a tarball ${tarball} for ${target.platform}-${target.arch}`, {
|
|
24
23
|
suggestions: [`Run "oclif-dev pack --target ${target.platform}-${target.arch}" before uploading`],
|
|
25
24
|
});
|
|
26
|
-
log_1.log('Found it.');
|
|
27
25
|
}
|
|
28
26
|
const S3Options = {
|
|
29
27
|
Bucket: s3Config.bucket,
|