Skip to content

Commit

Permalink
update valist sdk, fix yml-path and use-yml flags
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettCleary committed Mar 12, 2024
1 parent 6c43da2 commit 2089041
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 11 deletions.
65 changes: 61 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@oclif/core": "^1.8.0",
"@oclif/plugin-help": "^5",
"@valist/sdk": "file:../../valist-io/valist-js/packages/valist-sdk",
"@valist/sdk": "^2.9.4",
"archiver": "^7.0.0",
"axios": "^1.6.7",
"axios-cookiejar-support": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/yml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { FlagOutput } from "@oclif/core/lib/interfaces";
export function parseYml(args: {[name: string]: any;}, flags: FlagOutput): {config: ReleaseConfig, yamlConfig: YamlConfig | undefined} | undefined{
let config: ReleaseConfig;
let yamlConfig: YamlConfig | undefined = undefined;
const flagPath = flags['ymlPath']
const flagPath = flags['yml-path']
const ymlPath = flagPath ? flagPath : 'hyperplay.yml'
// cli args and flags
if (args.account && args.project && args.release && !flags['useYml']) {
if (args.account && args.project && args.release && !flags['use-yml']) {
config = new ReleaseConfig(args.account, args.project, args.release);
const platformFlags: SupportedPlatform[] = ["web", "darwin_amd64", "darwin_arm64", "linux_amd64", "linux_arm64", "windows_amd64", "windows_arm64", "android_arm64"]
for (const platform of platformFlags){
Expand Down
8 changes: 4 additions & 4 deletions test/yml.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ describe('YML Tests', ()=>{
release: 'v0.12.0'
}
const flags = {
useYml: true,
ymlPath: './test/mock_data/hyperplay.yml'
"use-yml": true,
"yml-path": './test/mock_data/hyperplay.yml'
}
const parsed = parseYml(args, flags)
if (parsed === undefined){
Expand All @@ -31,8 +31,8 @@ describe('YML Tests', ()=>{
release: 'v0.12.0'
}
const flags = {
useYml: true,
ymlPath: './test/mock_data/hyperplay_client.yml'
"use-yml": true,
"yml-path": './test/mock_data/hyperplay_client.yml'
}
const parsed = parseYml(args, flags)
if (parsed === undefined){
Expand Down

0 comments on commit 2089041

Please sign in to comment.