Add GENERATE_TYPES_SYNCED_TS_FILES="my-synced-types.d.ts, my-second-synced-types.d.ts" to your .env (support for several files is for not fully configured monorepos like in my case)
Create/udate/delete a collection, a field or a relation
The file(s) will be updated almost instantly
This PR required some refacto
Change the extebsion type to a bundle
Slice getCollections in 2 layers to be usable with data from a module (api) and from a hook (services)
I also added support for automatic extensions reloading of the server during dev
Out of scope (IMHO)
Python files
Remaining non blocking problem:
baseUrl is not taken in consideration with the recreated extension's (as a bundle one) tsconfig.json
I'm still not sure if I prefer to use nodemon or EXTENSIONS_AUTO_RELOAD="true", please tell me your feeling!
Hoping you'll have time for a review,
Thank you for your work!
Please go there instead https://github.com/maltejur/directus-extension-generate-types/pull/29
This PR required some refacto
getCollections
in 2 layers to be usable with data from a module (api) and from a hook (services)Out of scope (IMHO)
Remaining non blocking problem:
nodemon
orEXTENSIONS_AUTO_RELOAD="true"
, please tell me your feeling!Hoping you'll have time for a review, Thank you for your work!