Skip to content

InjectPluginParams.sourceDirectory?

InjectPluginParams › sourceDirectory?

Type: string

Directory to read the plugin's built files from. Every file directly inside it is copied into .obsidian/plugins/<pluginId>/; main.js and manifest.json are required.

Setting this also opts the plugin **out** of the headless bootstrap: an explicit source directory names a local build output, not somewhere to download a published release into.