I had these issues with many projects. Especially with "create" functions using external resources - entities, images, etc. I have an example of an Auto-Bind script that searches through all resource folders within a project and writes the file names of each file into a new bind script that can be included before publishing.

Edit the script to target the folders that hold the resources that are external and this will make sure that all used assets will be written into bind statements.

Can be easily edited to create a .WDL BIND script as well if wdl is what you need.

Here is the code and example. Maybe this can help.
https://evoeon.com/freeDownloads/autobind_example.zip