Skip to content

Commit

Permalink
Merge pull request #8 from timlrx/fix/cli
Browse files Browse the repository at this point in the history
Fix cli
  • Loading branch information
timlrx authored Apr 23, 2024
2 parents 172f039 + cd7c037 commit 956c561
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 288 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('@contentlayer2/cli/commands/BuildCommand:executeSafe'),
)
}
2 changes: 1 addition & 1 deletion packages/@contentlayer/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const run = async () => {

const cli = new Cli({
binaryLabel: `Contentlayer CLI`,
binaryName: process.env['CL_DEBUG'] ? `${node} ${app}` : 'contentlayer',
binaryName: process.env['CL_DEBUG'] ? `${node} ${app}` : 'contentlayer2',
binaryVersion: contentlayerVersion,
})

Expand Down
Loading

0 comments on commit 956c561

Please sign in to comment.