Skip to content

Commit

Permalink
Add -o / --outDir option for output folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pichfl committed Aug 9, 2024
1 parent 65a70d6 commit 0c465cb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/auto-reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ program
program
.command('build')
.description('Build a static copy of your presentation.')
.action(() => build(config));
.option('-o, --outDir <path>', 'Output directory', config.build.outDir)
.action((options) =>
build({
...config,
build: {
...config.build,
outDir: options.outDir
? path.resolve(cwd, options.outDir)
: config.build.outDir,
},
}),
);

program.parse();

0 comments on commit 0c465cb

Please sign in to comment.