openapi-generator-cli icon indicating copy to clipboard operation
openapi-generator-cli copied to clipboard

Add support for PnP

Open simPod opened this issue 3 years ago • 2 comments

When using yarn pnp, there's no node_modules folder.

Is there a way to reference the local json without that?

https://github.com/OpenAPITools/openapi-generator-cli/blob/ec675176d38ad35ef574db4633dc2c754797fa2f/apps/generator-cli/src/README.md?plain=1#L112

Or is "$schema": "https://github.com/OpenAPITools/openapi-generator-cli/blob/master/apps/generator-cli/src/config.schema.json" viable?

simPod avatar Dec 27 '21 11:12 simPod

@simPod I might be wrong here, but since this tool is relying on binaries you probably want to unplug it.

And as unplugged, you can access to the schema from there as well.

yarn unplug @openapitools/openapi-generator-cli

seivan avatar Oct 04 '22 09:10 seivan

but since this tool is relying on binaries you probably want to unplug it.

I don't understand why. Works ok when plugged. 🤔

simPod avatar Oct 04 '22 10:10 simPod