Skip to content

Commit

Permalink
fix: check if oclif section exists (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Feb 14, 2023
1 parent b798d3c commit d296847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class Manifest extends Command {

let jitPluginManifests: Interfaces.Manifest[] = []

if (flags.jit && packageJson.oclif.jitPlugins) {
if (flags.jit && packageJson.oclif?.jitPlugins) {
this.debug('jitPlugins: %s', packageJson.oclif.jitPlugins)
const tmpDir = os.tmpdir()
const promises = Object.entries(packageJson.oclif.jitPlugins).map(async ([jitPlugin, version]) => {
Expand Down

0 comments on commit d296847

Please sign in to comment.