mancku / strapi-plugin-schemas-to-ts

Strapi Plugin Schemas to TS is a plugin for Strapi v4 that automatically converts your Strapi schemas into Typescript interfaces.
MIT License
62 stars 16 forks source link

Seems like the `destinationFolder` option doesn't do anything #55

Open kyrylohoi opened 5 months ago

kyrylohoi commented 5 months ago

package.json:

 "@strapi/strapi": "4.21.1",
"strapi-plugin-schemas-to-ts": "^1.3.2",

plugins.ts:

export default {
    'schemas-to-ts': {
        enabled: true,
        config: {
          destinationFolder: "generated-interfaces",
        }
      },
  }

The plugin ignores this config option and still generates the types inside api, common, and components folders instead of a settled folder.

creazy231 commented 2 months ago

Tested with "@strapi/strapi": "4.25.1" and wasn't able to reproduce. Everything works fine and is getting generated inside the generated-interfaces folder. CleanShot 2024-06-20 at 23 20 11

Bredansky commented 2 months ago

I guess it's related to the issue described here https://github.com/mancku/strapi-plugin-schemas-to-ts/issues/56