Skip to content

Commit

Permalink
Merge pull request #13 from ga4gh/fix-cli-dependencies
Browse files Browse the repository at this point in the history
Fix CLI dependencies
  • Loading branch information
jaeddy authored Mar 25, 2020
2 parents 456ed0b + 7c1e267 commit 2215660
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@
"redoc-cli": "^0.9.6",
"remote-origin-url": "^2.0.0",
"shelljs": "^0.7.0",
"swagger-repo": "2.0.0-rc.15",
"@redocly/openapi-cli": "0.8.4",
"swagger-ui-dist": "3.24.0",
"update-notifier": "3.0.1",
"yargs-parser": "15.0.0"
},
"bin": "./dist/gh-openapi-docs.js",
"scripts": {
"fetch": "node src/fetchpages.js",
"swagger": "swagger-repo",
"redoc": "redoc-cli",
"build:swagger": "node src/swagger-ui.js",
"build:redoc": "node src/redoc-ui.js",
"clean": "rm -rf dist/* bin/*",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const bundleSpec = async () => {
'text': OPENAPI_JSON_PATH
});
shell.exec(
`npm run swagger bundle -- -b ${specDir} -o ${OPENAPI_JSON_PATH}`
`openapi bundle -f --output ${OPENAPI_JSON_PATH} ${config.apiSpecPath}`
);
shell.exec(
`npm run swagger bundle -- --yaml -b ${specDir} -o ${OPENAPI_YAML_PATH}`
`openapi bundle -f --output ${OPENAPI_YAML_PATH} ${config.apiSpecPath}`
);
shell.rm('-rf', specDir);
};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/redoc-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const setupUI = () => {
var indexPath = path.join(uiPath, 'index.html');
log.log(`Generating OpenAPI docs index at '${indexPath}'`);
shell.exec(
`npm run redoc bundle -- ${OPENAPI_YAML_PATH} --output ${indexPath}`
`redoc-cli bundle --output ${indexPath} ${OPENAPI_YAML_PATH}`
);
log.preview({
'title': 'OpenAPI docs folder contents',
Expand Down

0 comments on commit 2215660

Please sign in to comment.