directus_api_manager icon indicating copy to clipboard operation
directus_api_manager copied to clipboard

Suggestion: add dependency to dev_dep

Open shptecheu opened this issue 6 months ago • 2 comments

It would be cleaner to avoid wrapping the sdk.

Furthermore, an idea would be to call final collections = sdk.collections; to get the collections in the instance. This would allow the package to generate the collection files without requiring user input!

shptecheu avatar Aug 07 '25 16:08 shptecheu

I am not sure what you are talking about. What is dev_dep ?

maxbritto avatar Aug 07 '25 17:08 maxbritto

Adding the package as a dependency like so

dev_dependencies: directus_api_manager: version

This would allow build watcher to watch for change, ie when a collection changes, it would update the class signature and regenerate the code for models.

camillerimichael avatar Aug 08 '25 06:08 camillerimichael