esoui-publish 2.2.0 → 2.2.1
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/dist/bin.js +1 -4
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -9,7 +9,7 @@ var yargs_1 = __importDefault(require("yargs"));
|
|
|
9
9
|
var argv = yargs_1.default.options({
|
|
10
10
|
token: { type: 'string', description: "Recommend setting `ESOUI_TOKEN` environment variable to avoid exposing token via logs. Otherwise this parameter is required." },
|
|
11
11
|
id: { type: 'number', demandOption: true, description: "ID of the addon to update" },
|
|
12
|
-
version: { type: 'string', description: "Version of the new version" },
|
|
12
|
+
version: { type: 'string', demandOption: true, description: "Version of the new version" },
|
|
13
13
|
description: { type: 'string', description: "Name of the file that contains the addon description. (aka what is shown on the main page of your addon)" },
|
|
14
14
|
changelog: { type: 'string', description: "Name of the file that contains the changelog" },
|
|
15
15
|
compatibility: { type: 'string', description: "Game version your addon supports. (i.e. `5.2.5`)" },
|
|
@@ -17,9 +17,6 @@ var argv = yargs_1.default.options({
|
|
|
17
17
|
testDeploy: { type: 'boolean', description: "Set to true to validate upload parameters without updating the actual add on" }
|
|
18
18
|
}).argv;
|
|
19
19
|
var token = argv.token || process.env.ESOUI_TOKEN;
|
|
20
|
-
if (!argv.version) {
|
|
21
|
-
throw new Error('Version is required. Please provide via `--version=<version>`');
|
|
22
|
-
}
|
|
23
20
|
if (token) {
|
|
24
21
|
index_1.EsouiPublish.publish(token, argv.id, argv.version, argv.description, argv.changelog, argv.compatibility, argv.updatefile, argv.testDeploy)
|
|
25
22
|
.then(function (response) { return console.log(JSON.stringify(response, null, 2)); })
|
package/dist/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;;;;;AACA,iCAAuC;AAEvC,gDAA0B;AAC1B,IAAM,IAAI,GAA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