oclif 2.4.4 → 2.4.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 +2 -0
- package/README.md +9 -12
- package/lib/commands/pack/tarballs.d.ts +1 -1
- package/lib/commands/pack/tarballs.js +5 -8
- package/lib/commands/promote.d.ts +1 -1
- package/lib/commands/promote.js +4 -8
- package/lib/commands/upload/tarballs.d.ts +1 -1
- package/lib/commands/upload/tarballs.js +5 -9
- package/lib/tarballs/config.js +2 -1
- package/package.json +1 -1
package/.oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.4.
|
|
1
|
+
{"version":"2.4.5","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},"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},"xz":{"name":"xz","type":"boolean","description":"also build xz","allowNo":true},"tarball":{"name":"tarball","type":"option","char":"l","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},"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,8 @@
|
|
|
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.5](https://github.com/oclif/oclif/compare/v2.4.4...v2.4.5) (2022-02-17)
|
|
6
|
+
|
|
5
7
|
### [2.4.4](https://github.com/oclif/oclif/compare/v2.4.3...v2.4.4) (2022-02-09)
|
|
6
8
|
|
|
7
9
|
|
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.4.
|
|
149
|
+
_See code: [src/commands/generate.ts](https://github.com/oclif/oclif/blob/v2.4.4/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.4.
|
|
223
|
+
_See code: [src/commands/manifest.ts](https://github.com/oclif/oclif/blob/v2.4.4/src/commands/manifest.ts)_
|
|
224
224
|
|
|
225
225
|
## `oclif pack deb`
|
|
226
226
|
|
|
@@ -260,13 +260,12 @@ packages oclif CLI into tarballs
|
|
|
260
260
|
|
|
261
261
|
```
|
|
262
262
|
USAGE
|
|
263
|
-
$ oclif pack tarballs -r <value> [-t <value>] [--xz] [-
|
|
263
|
+
$ oclif pack tarballs -r <value> [-t <value>] [--xz] [-l <value>]
|
|
264
264
|
|
|
265
265
|
FLAGS
|
|
266
|
+
-l, --tarball=<value> optionally specify a path to a tarball already generated by NPM
|
|
266
267
|
-r, --root=<value> (required) [default: .] path to oclif CLI root
|
|
267
|
-
-t, --
|
|
268
|
-
-t, --targets=<value> [default: linux-x64,linux-arm,win32-x64,win32-x86,darwin-x64,darwin-arm64] comma-separated
|
|
269
|
-
targets to pack (e.g.: linux-arm,win32-x64)
|
|
268
|
+
-t, --targets=<value> comma-separated targets to pack (e.g.: linux-arm,win32-x64)
|
|
270
269
|
--[no-]xz also build xz
|
|
271
270
|
|
|
272
271
|
DESCRIPTION
|
|
@@ -308,8 +307,7 @@ FLAGS
|
|
|
308
307
|
-d, --deb promote debian artifacts
|
|
309
308
|
-m, --macos promote macOS pkg
|
|
310
309
|
-r, --root=<value> (required) [default: .] path to the oclif CLI project root
|
|
311
|
-
-t, --targets=<value>
|
|
312
|
-
targets to promote (e.g.: linux-arm,win32-x64)
|
|
310
|
+
-t, --targets=<value> comma-separated targets to promote (e.g.: linux-arm,win32-x64)
|
|
313
311
|
-w, --win promote Windows exe
|
|
314
312
|
--channel=<value> (required) [default: stable] which channel to promote to
|
|
315
313
|
--indexes append the promoted urls into the index files
|
|
@@ -321,7 +319,7 @@ DESCRIPTION
|
|
|
321
319
|
promote CLI builds to a S3 release channel
|
|
322
320
|
```
|
|
323
321
|
|
|
324
|
-
_See code: [src/commands/promote.ts](https://github.com/oclif/oclif/blob/v2.4.
|
|
322
|
+
_See code: [src/commands/promote.ts](https://github.com/oclif/oclif/blob/v2.4.4/src/commands/promote.ts)_
|
|
325
323
|
|
|
326
324
|
## `oclif readme`
|
|
327
325
|
|
|
@@ -351,7 +349,7 @@ DESCRIPTION
|
|
|
351
349
|
Customize the code URL prefix by setting oclif.repositoryPrefix in package.json.
|
|
352
350
|
```
|
|
353
351
|
|
|
354
|
-
_See code: [src/commands/readme.ts](https://github.com/oclif/oclif/blob/v2.4.
|
|
352
|
+
_See code: [src/commands/readme.ts](https://github.com/oclif/oclif/blob/v2.4.4/src/commands/readme.ts)_
|
|
355
353
|
|
|
356
354
|
## `oclif upload deb`
|
|
357
355
|
|
|
@@ -393,8 +391,7 @@ USAGE
|
|
|
393
391
|
|
|
394
392
|
FLAGS
|
|
395
393
|
-r, --root=<value> (required) [default: .] path to oclif CLI root
|
|
396
|
-
-t, --targets=<value>
|
|
397
|
-
targets to upload (e.g.: linux-arm,win32-x64)
|
|
394
|
+
-t, --targets=<value> comma-separated targets to upload (e.g.: linux-arm,win32-x64)
|
|
398
395
|
--[no-]xz also upload xz
|
|
399
396
|
|
|
400
397
|
DESCRIPTION
|
|
@@ -3,7 +3,7 @@ export default class PackTarballs extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
5
|
root: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
-
targets: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
targets: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
7
|
xz: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
tarball: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
9
9
|
};
|
|
@@ -5,12 +5,12 @@ const qq = require("qqjs");
|
|
|
5
5
|
const Tarballs = require("../../tarballs");
|
|
6
6
|
class PackTarballs extends core_1.Command {
|
|
7
7
|
async run() {
|
|
8
|
+
var _a;
|
|
8
9
|
const prevCwd = qq.cwd();
|
|
9
10
|
if (process.platform === 'win32')
|
|
10
11
|
throw new Error('pack does not function on windows');
|
|
11
12
|
const { flags } = await this.parse(PackTarballs);
|
|
12
|
-
const targets = flags.targets.split(',');
|
|
13
|
-
const buildConfig = await Tarballs.buildConfig(flags.root, { xz: flags.xz, targets: targets });
|
|
13
|
+
const buildConfig = await Tarballs.buildConfig(flags.root, { xz: flags.xz, targets: (_a = flags === null || flags === void 0 ? void 0 : flags.targets) === null || _a === void 0 ? void 0 : _a.split(',') });
|
|
14
14
|
if (buildConfig.targets.length === 0) {
|
|
15
15
|
throw new Error('Please specify one or more valid targets.');
|
|
16
16
|
}
|
|
@@ -27,10 +27,7 @@ This can be used to create oclif CLIs that use the system node or that come prel
|
|
|
27
27
|
`;
|
|
28
28
|
PackTarballs.flags = {
|
|
29
29
|
root: core_1.Flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
|
|
30
|
-
targets: core_1.Flags.string({ char: 't',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}),
|
|
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 }),
|
|
30
|
+
targets: core_1.Flags.string({ char: 't', description: 'comma-separated targets to pack (e.g.: linux-arm,win32-x64)' }),
|
|
31
|
+
xz: core_1.Flags.boolean({ description: 'also build xz', allowNo: true }),
|
|
32
|
+
tarball: core_1.Flags.string({ char: 'l', description: 'optionally specify a path to a tarball already generated by NPM', required: false }),
|
|
36
33
|
};
|
|
@@ -6,7 +6,7 @@ export default class Promote extends Command {
|
|
|
6
6
|
version: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
7
7
|
sha: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
8
|
channel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
9
|
-
targets: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
9
|
+
targets: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
10
|
deb: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
macos: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
12
|
win: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
package/lib/commands/promote.js
CHANGED
|
@@ -8,10 +8,10 @@ const upload_util_1 = require("../upload-util");
|
|
|
8
8
|
const version_indexes_1 = require("../version-indexes");
|
|
9
9
|
class Promote extends core_1.Command {
|
|
10
10
|
async run() {
|
|
11
|
+
var _a;
|
|
11
12
|
const { flags } = await this.parse(Promote);
|
|
12
13
|
const maxAge = `max-age=${flags['max-age']}`;
|
|
13
|
-
const targets = flags.targets.split(',');
|
|
14
|
-
const buildConfig = await Tarballs.buildConfig(flags.root, { targets });
|
|
14
|
+
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(',') });
|
|
15
15
|
const { s3Config, config } = buildConfig;
|
|
16
16
|
const indexDefaults = {
|
|
17
17
|
version: flags.version,
|
|
@@ -168,15 +168,11 @@ Promote.flags = {
|
|
|
168
168
|
version: core_1.Flags.string({ description: 'semantic version of the CLI to promote', required: true }),
|
|
169
169
|
sha: core_1.Flags.string({ description: '7-digit short git commit SHA of the CLI to promote', required: true }),
|
|
170
170
|
channel: core_1.Flags.string({ description: 'which channel to promote to', required: true, default: 'stable' }),
|
|
171
|
-
targets: core_1.Flags.string({
|
|
172
|
-
char: 't',
|
|
173
|
-
description: 'comma-separated targets to promote (e.g.: linux-arm,win32-x64)',
|
|
174
|
-
default: Tarballs.TARGETS.join(','),
|
|
175
|
-
}),
|
|
171
|
+
targets: core_1.Flags.string({ char: 't', description: 'comma-separated targets to promote (e.g.: linux-arm,win32-x64)' }),
|
|
176
172
|
deb: core_1.Flags.boolean({ char: 'd', description: 'promote debian artifacts' }),
|
|
177
173
|
macos: core_1.Flags.boolean({ char: 'm', description: 'promote macOS pkg' }),
|
|
178
174
|
win: core_1.Flags.boolean({ char: 'w', description: 'promote Windows exe' }),
|
|
179
175
|
'max-age': core_1.Flags.string({ char: 'a', description: 'cache control max-age in seconds', default: '86400' }),
|
|
180
|
-
xz: core_1.Flags.boolean({ description: 'also upload xz', allowNo: true
|
|
176
|
+
xz: core_1.Flags.boolean({ description: 'also upload xz', allowNo: true }),
|
|
181
177
|
indexes: core_1.Flags.boolean({ description: 'append the promoted urls into the index files' }),
|
|
182
178
|
};
|
|
@@ -4,7 +4,7 @@ export default class UploadTarballs extends Command {
|
|
|
4
4
|
static description: string;
|
|
5
5
|
static flags: {
|
|
6
6
|
root: Interfaces.OptionFlag<string>;
|
|
7
|
-
targets: Interfaces.OptionFlag<string>;
|
|
7
|
+
targets: Interfaces.OptionFlag<string | undefined>;
|
|
8
8
|
xz: Interfaces.BooleanFlag<boolean>;
|
|
9
9
|
};
|
|
10
10
|
run(): Promise<void>;
|
|
@@ -8,11 +8,11 @@ const Tarballs = require("../../tarballs");
|
|
|
8
8
|
const upload_util_1 = require("../../upload-util");
|
|
9
9
|
class UploadTarballs extends core_1.Command {
|
|
10
10
|
async run() {
|
|
11
|
+
var _a;
|
|
11
12
|
const { flags } = await this.parse(UploadTarballs);
|
|
12
13
|
if (process.platform === 'win32')
|
|
13
14
|
throw new Error('upload does not function on windows');
|
|
14
|
-
const targets = flags.targets.split(',');
|
|
15
|
-
const buildConfig = await Tarballs.buildConfig(flags.root, { targets, xz: flags.xz });
|
|
15
|
+
const buildConfig = await Tarballs.buildConfig(flags.root, { xz: flags.xz, targets: (_a = flags === null || flags === void 0 ? void 0 : flags.targets) === null || _a === void 0 ? void 0 : _a.split(',') });
|
|
16
16
|
const { s3Config, dist, config, xz } = buildConfig;
|
|
17
17
|
// fail early if targets are not built
|
|
18
18
|
for (const target of buildConfig.targets) {
|
|
@@ -58,7 +58,7 @@ class UploadTarballs extends core_1.Command {
|
|
|
58
58
|
const cloudKey = `${(0, upload_util_1.commitAWSDir)(config.version, buildConfig.gitSha, s3Config)}/${manifest}`;
|
|
59
59
|
await aws_1.default.s3.uploadFile(dist(manifest), Object.assign(Object.assign({}, ManifestS3Options), { Key: cloudKey }));
|
|
60
60
|
};
|
|
61
|
-
if (targets.length > 0)
|
|
61
|
+
if (buildConfig.targets.length > 0)
|
|
62
62
|
(0, log_1.log)('uploading targets');
|
|
63
63
|
// eslint-disable-next-line no-await-in-loop
|
|
64
64
|
for (const target of buildConfig.targets)
|
|
@@ -73,10 +73,6 @@ UploadTarballs.description = `upload an oclif CLI to S3
|
|
|
73
73
|
`;
|
|
74
74
|
UploadTarballs.flags = {
|
|
75
75
|
root: core_1.Flags.string({ char: 'r', description: 'path to oclif CLI root', default: '.', required: true }),
|
|
76
|
-
targets: core_1.Flags.string({
|
|
77
|
-
|
|
78
|
-
description: 'comma-separated targets to upload (e.g.: linux-arm,win32-x64)',
|
|
79
|
-
default: Tarballs.TARGETS.join(','),
|
|
80
|
-
}),
|
|
81
|
-
xz: core_1.Flags.boolean({ description: 'also upload xz', allowNo: true, default: true }),
|
|
76
|
+
targets: core_1.Flags.string({ char: 't', description: 'comma-separated targets to upload (e.g.: linux-arm,win32-x64)' }),
|
|
77
|
+
xz: core_1.Flags.boolean({ description: 'also upload xz', allowNo: true }),
|
|
82
78
|
};
|
package/lib/tarballs/config.js
CHANGED
|
@@ -26,6 +26,7 @@ async function Tmp(config) {
|
|
|
26
26
|
return tmp;
|
|
27
27
|
}
|
|
28
28
|
async function buildConfig(root, options = {}) {
|
|
29
|
+
var _a, _b, _c;
|
|
29
30
|
const config = await core_1.Config.load({ root: path.resolve(root), devPlugins: false, userPlugins: false });
|
|
30
31
|
root = config.root;
|
|
31
32
|
const _gitSha = await gitSha(root, { short: true });
|
|
@@ -52,7 +53,7 @@ async function buildConfig(root, options = {}) {
|
|
|
52
53
|
config,
|
|
53
54
|
tmp,
|
|
54
55
|
updateConfig,
|
|
55
|
-
xz:
|
|
56
|
+
xz: (_c = (_a = options === null || options === void 0 ? void 0 : options.xz) !== null && _a !== void 0 ? _a : (_b = updateConfig === null || updateConfig === void 0 ? void 0 : updateConfig.s3) === null || _b === void 0 ? void 0 : _b.xz) !== null && _c !== void 0 ? _c : true,
|
|
56
57
|
dist: (...args) => path.join(config.root, 'dist', ...args),
|
|
57
58
|
s3Config: updateConfig.s3,
|
|
58
59
|
nodeVersion,
|