Skip to content

Commit

Permalink
fix: make oclif.s3.folder optional for --indexes (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Dec 27, 2022
1 parent e30ade0 commit df9db2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/version-indexes.ts
Expand Up @@ -42,7 +42,8 @@ export const appendToIndex = async (input: { version: string; originalUrl: strin

// json-friendly filenames like sfdx-linux-x64-tar-gz
const jsonFileName = `${filename.replace(/\./g, '-')}.json`
const key = path.join(s3Config.folder!, 'versions', jsonFileName)
// folder is optional, but honored if present
const key = path.join(s3Config.folder ?? '', 'versions', jsonFileName)

// retrieve existing index file
let existing = {}
Expand Down

0 comments on commit df9db2f

Please sign in to comment.