-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "npx" from globally installed commands #61
Comments
The current README says to install this tool globally with Using
Proposed solution: Rely on local install
We could send the paths to the command in the config object with the default path set to |
I'm actually not sure how the above solution would work when |
Yeah, I'm good to leave this one as is. My above error was related to dependencies being incorrectly installed in the docker image, which I've since rectified. As you mention, it'll be good once there's a library API for these packages that we can import rather than run on the command line, but last time I checked there was nothing available. Feel free to close this issue |
Can we remove the
npx
at the beginning of the following commands, especially since theREADME
states to install the two dependencies globally:npx openapi bundle -f --output ${OPENAPI_JSON_PATH} ${config.apiSpecPath}
npx openapi bundle -f --output ${OPENAPI_YAML_PATH} ${config.apiSpecPath}
npx redoc-cli bundle --output ${indexPath} ${OPENAPI_YAML_PATH} ${redocOpts}
I am making a docker image of this app, and currently some of the steps are failing when the command is run with
npx
at the beginning.command:
npx openapi bundle -f --output openapi.yaml service-registry.yaml
error:
However when I just run:
openapi bundle -f --output openapi.yaml service-registry.yaml
the job completes successfullyThe text was updated successfully, but these errors were encountered: