mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 03:53:43 +03:00
fix(cli): fix crash
This commit is contained in:
parent
06b5a00a8b
commit
8891f5c97d
|
@ -113,6 +113,7 @@ yargs
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
.demandCommand()
|
||||||
.options('t', {
|
.options('t', {
|
||||||
alias: 'template',
|
alias: 'template',
|
||||||
describe: 'Path to handlebars page template, see https://git.io/vxZ3V for the example ',
|
describe: 'Path to handlebars page template, see https://git.io/vxZ3V for the example ',
|
||||||
|
@ -120,8 +121,7 @@ yargs
|
||||||
})
|
})
|
||||||
.options('options', {
|
.options('options', {
|
||||||
describe: 'ReDoc options, use dot notation, e.g. options.nativeScrollbars',
|
describe: 'ReDoc options, use dot notation, e.g. options.nativeScrollbars',
|
||||||
})
|
}).argv;
|
||||||
.demandCommand().argv;
|
|
||||||
|
|
||||||
async function serve(port: number, pathToSpec: string, options: Options = {}) {
|
async function serve(port: number, pathToSpec: string, options: Options = {}) {
|
||||||
let spec = await loadAndBundleSpec(pathToSpec);
|
let spec = await loadAndBundleSpec(pathToSpec);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "redoc-cli",
|
"name": "redoc-cli",
|
||||||
"version": "0.3.1",
|
"version": "0.3.3",
|
||||||
"description": "ReDoc's Command Line Interface",
|
"description": "ReDoc's Command Line Interface",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": "index.js",
|
"bin": "index.js",
|
||||||
|
@ -12,7 +12,8 @@
|
||||||
"isarray": "^2.0.4",
|
"isarray": "^2.0.4",
|
||||||
"react": "^16.3.0-alpha.2",
|
"react": "^16.3.0-alpha.2",
|
||||||
"react-dom": "^16.3.0-alpha.2",
|
"react-dom": "^16.3.0-alpha.2",
|
||||||
"redoc": "^2.0.0-alpha.15"
|
"redoc": "^2.0.0-alpha.15",
|
||||||
|
"yargs": "^11.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ci-publish": "ci-publish"
|
"ci-publish": "ci-publish"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user