I was wondering if there is a way to run a library-script (defined in a
library.json file) conditionally.
I whish some scripts to be run with certain targets (it should with target ‘build’, but not with target ‘upload’ for example).
I could create a custom command, set some global variable I could check in the python-script itself, but it seems a little scuffed. Is there some way to check the target-type from
env or (prefferably) actually conditionally queue the extra-script?