Skip to content

Commit

Permalink
Fix exit code error thrown from build command on Node 20+
Browse files Browse the repository at this point in the history
  • Loading branch information
jrolfs committed Nov 15, 2023
1 parent 2f491c5 commit 690270b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@contentlayer/cli/src/commands/BuildCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class BuildCommand extends BaseCommand {
T.tap((config) => (config.source.options.disableImportAliasWarning ? T.unit : T.fork(core.validateTsconfig))),
T.chain((config) => core.generateDotpkg({ config, verbose: this.verbose })),
T.tap(core.logGenerateInfo),
T.map(() => 0),
OT.withSpan('@contentlayer/cli/commands/BuildCommand:executeSafe'),
)
}

0 comments on commit 690270b

Please sign in to comment.