When you have the right structure for your XD plugin, it will look like this:
my-plugin-folder ├── main.js └── manifest.json
Your plugin's parent folder
develop folder, create a new folder for your plugin with any name you like.
Your plugin files
Within the parent folder, you'll need at minimum two files, with these exact names:
manifest.jsonis your plugin’s manifest.
This file is where you include facts about your plugin, such as its name, the menu item(s) it adds to XD, and so on. Learn about the manifest here.
main.jsis your plugin’s code.
These two files go into your plugin's parent directory.
Read on to learn about the two required files: