Do NOT prime part

Is it possible to tell snapcraft not to put an entire part in the final package?

Ideally doing something like prime: false would be awesome, I tried prime: [] but that didn’t work so right now I am excluding the files I do not want like so prime: [-somefile, -somedir/*] which is not ideal…

Have you tried prime: ['-*'] ?

Thanks that worked and it is an improvement enough for me.

You can also use override-prime: 'true' to skip the entire prime step of specific parts.

Refer: Scriptlets - Snaps are universal Linux packages