Skip to content

Commit

Permalink
fix: make oclif.s3.folder optional for --indexes (oclif#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored and mattwebbio committed Dec 29, 2022
1 parent 29a7296 commit 816a0e7
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 816a0e7

Please sign in to comment.