decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
445 stars 133 forks source link

[proposal] make path output from generate schema dynamic #1317

Closed cre8 closed 10 months ago

cre8 commented 10 months ago

Is your feature request related to a problem? Please describe. Right now the outcoming schem.json file is static: https://github.com/decentralized-identity/veramo/blob/next/packages/cli/src/dev.ts#L187 This makes it difficult when I run the command inside a monorepo like nx. The veramo cli process is running in the root folder and the path to the api-extractor.json can be set, but not the output.

Describe the solution you'd like Add a new parameter that can be passed to the cli. The default one will be the current one to not break anything.

Describe alternatives you've considered Something like cd libs/vc-store && npx @veramo/cli -- dev generate-plugin-schema is not good since an already installed dependency is not used.

Additional context Add any other context or screenshots about the feature request here.