How to exclude editor module that is part of plugin

Hello,

I’m building a plugin that contains two modules:

 "Modules": [
    {
      "Name": "CustomTool",
      "Type": "DeveloperTool",
      "LoadingPhase": "PreDefault",
      "WhitelistPlatforms": [ "Win64", "Win32" ]
    },
    {
      "Name": "CustomAnimation",
      "Type": "Runtime",
      "LoadingPhase": "PreDefault",
      "WhitelistPlatforms": [ "Win64", "Win32" ]
    }
  ],

CustomTool → Is for in editor and the build.cs file contains:

        PrivateDependencyModuleNames.AddRange(
           new string[]
           {"UnrealEd"}

How do I exclude CustomTool from being compiled when I try to package the project?

“Type”: “Editor”,

That fixes the issue