Open KaranAhlawat opened 4 months ago
If you could try two things:
sources: ./src/smithy
to scripts
project. changing thing in the shared
project shouldn't affect the sourcegen in another projectsourcegen
structure supports a sourceGlobs
field, which are for other files read by the sourcegen script outside of the build. I think this is relative to the project folder for shared
It would be great if you can experiment a bit with two options and report back, so we can update the docs
I tried both approaches.
sourceGlobs
says that it is relative to the project of the script. So for me, I should add a sourceGlobs: ../shared/src/smithy
to it. That however, doesn't seem to have any effect. Neither does sourceGlobs: ./src/smithy
, assuming it's relative to the shared
project and not the scripts
project.
I have a Smithy project, for which I have written a codegen script. I have then added this script to the project where the Smithy sources reside, and running the codegen works fine. Now, if I do
bleep sourcegen -w shared
, whereshared
is the project with the Smithy sources, it doesn't retrigger the codegen script when I change any of the smithy files, even though the thesmithy
folder is added as a source root in mybleep.yaml
.As show:
Not sure if I'm doing something wrong or missing a piece of configuration. Any help is appreciated :D