Shader export as a package contains all (unnecessary) scripts of the project

Shader export to the Cloud Asset Manager results in almost all scripts from the project being uploaded. This includes scripts that the shader does not use. The same problem occurs when I try to export the shader as a package. Does anyone have a solution or workaround for this?