Skip to content

Commit e858e9c

Browse files
committed
feat: build out dir
1 parent 80d0205 commit e858e9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/slidev/node/cli.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ cli.command(
103103
default: false,
104104
describe: 'build watch',
105105
})
106+
.option('out', {
107+
alias: 'o',
108+
type: 'string',
109+
describe: 'output dir',
110+
})
106111
.option('base', {
107112
type: 'string',
108113
describe: 'output base',
@@ -113,7 +118,7 @@ cli.command(
113118
describe: 'allow download as PDF',
114119
})
115120
.help(),
116-
async({ entry, theme, watch, base, download }) => {
121+
async({ entry, theme, watch, base, download, out }) => {
117122
const { build } = await import('./build')
118123

119124
const options = await resolveOptions({ entry, theme }, 'build')
@@ -125,6 +130,7 @@ cli.command(
125130
base,
126131
build: {
127132
watch: watch ? {} : undefined,
133+
outDir: out,
128134
},
129135
})
130136
},

0 commit comments

Comments
 (0)