@antora/cli
Advanced tools
Comparing version 2.3.4 to 3.0.0-alpha.1
@@ -50,3 +50,3 @@ #!/usr/bin/env node | ||
.option('-r, --require <library>', 'Require library (aka node module) or script before executing command.') | ||
.on('option:require', (requirePath) => (cli.requirePaths = (cli.requirePaths || []).concat(requirePath))) | ||
.on('option:require', (requirePath) => (cli.requirePaths = [...(cli.requirePaths || []), requirePath])) | ||
.option('--stacktrace', 'Print the stacktrace to the console if the application fails.') | ||
@@ -53,0 +53,0 @@ |
@@ -7,3 +7,3 @@ 'use strict' | ||
let exclude = opts.exclude | ||
if (exclude && !Array.isArray(exclude)) exclude = Array(exclude) | ||
if (exclude && !Array.isArray(exclude)) exclude = [exclude] | ||
getOptions(convictConfig).forEach((option) => { | ||
@@ -20,7 +20,6 @@ if (!(exclude && exclude.includes(option.name))) this.option(option.form, option.description, option.default) | ||
function collectOptions (props, options = [], context = undefined) { | ||
function collectOptions (props, context = undefined) { | ||
return Object.entries(props).reduce((accum, [key, value]) => { | ||
const path = context ? `${context}.${key}` : key | ||
if ('_cvtProperties' in value) { | ||
return collectOptions(value._cvtProperties, accum, path) | ||
accum.push(...collectOptions(value._cvtProperties, context ? `${context}.${key}` : key)) | ||
} else if ('arg' in value) { | ||
@@ -41,7 +40,6 @@ const { arg, format, default: default_ } = value | ||
} | ||
return accum.concat(option) | ||
} else { | ||
return accum | ||
accum.push(option) | ||
} | ||
}, options) | ||
return accum | ||
}, []) | ||
} |
{ | ||
"name": "@antora/cli", | ||
"version": "2.3.4", | ||
"version": "3.0.0-alpha.1", | ||
"description": "The command line interface for Antora.", | ||
@@ -21,13 +21,12 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/playbook-builder": "2.3.4", | ||
"@antora/playbook-builder": "3.0.0-alpha.1", | ||
"commander": "~6.1" | ||
}, | ||
"devDependencies": { | ||
"@antora/site-publisher": "2.3.4", | ||
"@antora/site-publisher": "3.0.0-alpha.1", | ||
"convict": "~6.0", | ||
"fs-extra": "~8.1", | ||
"kapok-js": "~0.10" | ||
}, | ||
"engines": { | ||
"node": ">=8.11.0" | ||
"node": ">=10.17.0" | ||
}, | ||
@@ -46,3 +45,3 @@ "files": [ | ||
], | ||
"gitHead": "5a40191c970ece6baecbd1a3a7a599d7161351a9" | ||
"gitHead": "337ff6d2ed11e1f4d0a8ef993ddc8eaac7a73e9f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
26071
148
1
+ Added@antora/playbook-builder@3.0.0-alpha.1(transitive)
- Removed@antora/playbook-builder@2.3.4(transitive)