yuanqing / create-figma-plugin

:battery: The comprehensive toolkit for developing plugins and widgets for Figma and FigJam
https://yuanqing.github.io/create-figma-plugin/
MIT License
935 stars 89 forks source link

buildManifestAsync does not create valid menu entry #221

Closed karmacod3r closed 6 months ago

karmacod3r commented 7 months ago

When I configure the menu entry according to this reference: https://www.figma.com/plugin-docs/manifest/ the watch and build scripts do only copy the menu names to the manifest. Why does the create-figma-plugin config have a different structure for menus? https://yuanqing.github.io/create-figma-plugin/configuration/

yuanqing commented 6 months ago

The different configuration API is to allow you to write each menu command as separate files, which helps with maintainability. If you prefer to do this wiring manually and write a manifest.json by hand, then I don’t think you actually need to reach for this framework

karmacod3r commented 6 months ago

Yes, I got confused and didn't realise the difference to manifest.json. Works perfectly now, thanks.