mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 19:57:25 +02:00
fix(v2): add serve to internal command list (#3451)
Right now `docusaurus serve my-dir` doesn't work because it's not registered as an internal command, thus always forced to invoked w/ `path.resolve('.')`. This fixes that
This commit is contained in:
parent
02f96286e5
commit
407581d26a
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ cli.arguments('<command>').action((cmd) => {
|
|||
});
|
||||
|
||||
function isInternalCommand(command) {
|
||||
return ['start', 'build', 'swizzle', 'deploy'].includes(command);
|
||||
return ['start', 'build', 'swizzle', 'deploy', 'serve'].includes(command);
|
||||
}
|
||||
|
||||
if (!isInternalCommand(process.argv.slice(2)[0])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue