Skip to content

Commit dfe2c81

Browse files
committed
Fix bugs
1 parent 623aa2c commit dfe2c81

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Cratecode",
1111
"license": "Apache-2.0",
1212
"dependencies": {
13-
"@cratecode/client": "^1.0.2",
13+
"@cratecode/client": "^1.0.3",
1414
"prompts": "^2.4.2",
1515
"yargs": "^17.5.1"
1616
},

src/index.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import * as fs from "fs";
88
import * as Path from "path";
99

1010
yargs(hideBin(process.argv))
11-
.scriptName("Cratecode CLI")
12-
.usage("$0 <cmd> [args]")
11+
.usage("Cratecode CLI")
1312
.command(
1413
"upload <manifest>",
1514
"Uploads a unit to Cratecode.",
@@ -60,7 +59,11 @@ yargs(hideBin(process.argv))
6059
}
6160

6261
const output =
63-
args.output || Path.parse(args.video as string).name + ".ogg";
62+
args.output ||
63+
Path.join(
64+
Path.dirname(args.video as string),
65+
Path.parse(args.video as string).name + ".ogg",
66+
);
6467

6568
// Make sure that the user knows that they're overriding a file.
6669
if (
@@ -73,7 +76,7 @@ yargs(hideBin(process.argv))
7376
message:
7477
'The file "' +
7578
output +
76-
'" already exists. Please confirm that you want to override it (Y/n):',
79+
'" already exists. Please confirm that you want to override it:',
7780
})
7881
).value
7982
) {
@@ -126,7 +129,7 @@ yargs(hideBin(process.argv))
126129
message:
127130
'The file "' +
128131
output +
129-
'" already exists. Please confirm that you want to override it (Y/n):',
132+
'" already exists. Please confirm that you want to override it:',
130133
})
131134
).value
132135
) {

yarn.lock

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# yarn lockfile v1
33

44

5-
"@cratecode/client@^1.0.2":
6-
version "1.0.2"
7-
resolved "https://registry.yarnpkg.com/@cratecode/client/-/client-1.0.2.tgz#c2bfbc31d88b047b8c612bc84cff10f1c227920a"
8-
integrity sha512-jxTBmZrT/rRsRNxa5eo5A6tm9u0lO4xtbnNRU88kGuk5t17y3gC+qWud0+i+jOuYIwvorQSzDb8cBCjFZtAJwg==
5+
"@cratecode/client@^1.0.3":
6+
version "1.0.3"
7+
resolved "https://registry.yarnpkg.com/@cratecode/client/-/client-1.0.3.tgz#cc44a0ea9ca85c15530d8c5758416e19c327096e"
8+
integrity sha512-L+FVIZCa8X2xmf22Tp3iUZ6kgyga3HBJZ4yI34Xahz+rllbbbpEhycdW5tq0Yokl03T5HQJvy+SlSdPsdzkqEQ==
99
dependencies:
10+
"@protobuf-ts/runtime" "^2.7.0"
1011
axios "^0.27.2"
1112
form-data "^4.0.0"
1213
walkdir "^0.4.1"
@@ -65,6 +66,11 @@
6566
"@nodelib/fs.scandir" "2.1.5"
6667
fastq "^1.6.0"
6768

69+
"@protobuf-ts/runtime@^2.7.0":
70+
version "2.7.0"
71+
resolved "https://registry.yarnpkg.com/@protobuf-ts/runtime/-/runtime-2.7.0.tgz#108252b9935018bd7eb9c0d4a349b8db11e382f7"
72+
integrity sha512-CzunTplg81oMkF9MnSYiX2WOdHnAyHKnokZncgOHm5bt8iEfFNnUsMSbsWUus/ulRNIZ9VAVMjutd96vmySQaw==
73+
6874
"@types/json-schema@^7.0.9":
6975
version "7.0.11"
7076
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3"

0 commit comments

Comments
 (0)