Hey there!
I'm trying to create an aggregate builder, but it appears that I can't find any asset but pubspec.* outside lib/ folder, regardless of what this test says.
I've created a minimal reproduction repository with the exact same code as the test pointed above, but the output is empty! https://github.com/comigor/repro_aggregate_builder
Is there any other configuration that need to be done to work with $lib$ synthetic input?
build: ^1.1.4Okay, answering my own question (after taking a look at the code): you need to explicitly whitelist the folders you want to be processed on build.yaml file:
targets:
$default:
sources:
- lib/**
- data/**
If you don't do this, by default it will consider only some inputs.
Correct, this is to avoid accidentally including build output directories and hidden directories etc. Fwiw we derived the default include list from the package layout conventions page (to be clear it is fine if you use other directories, it will just require explicit config as you discovered).
That's good to know! Thanks for pointing this to me!
Most helpful comment
That's good to know! Thanks for pointing this to me!