Skip to content

Commit

Permalink
fix(robo): context commands not adding to manifest properly
Browse files Browse the repository at this point in the history
Oops, looks like last night's clean up broke this!
  • Loading branch information
Pkmmte committed May 11, 2024
1 parent 1fa56a1 commit bf6db2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-ads-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'robo.js': patch
---

fix: context commands not adding to manifest properly
5 changes: 2 additions & 3 deletions packages/robo/src/cli/utils/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,8 @@ async function generateEntries<T>(
}

// Add the entry to the context type
if (entries[contextType] as Record<string, T>) {
entries[fileKeys[1]] = entry
}
const entriesRecord = entries[contextType] as Record<string, T>
entriesRecord[fileKeys[1]] = entry
}

// Third level command? Add it to the parent subcommand (subcommand group)
Expand Down

0 comments on commit bf6db2e

Please sign in to comment.