|
Hi everyone, |
Replies: 2 comments 4 replies
|
Great question! The state of what's build is tracked here If any command re-runs if nothings changed, it means something did change. We look at the whole folder and check the last modified date for each file. Typically this means output files are not being tracked and are being picked up as input. We try to guess based on node/npm conventions where your input and output files are. You can explicitly define the input or output folders in The definition for the config is here https://github.com/ojkelly/yarn.build/blob/main/packages/plugins/shared/src/config.ts#L11 Input and output can also be folders, if you're setup is a bit more complex: |
Hmmm, I wonder, how it is done. "output" doesn't matter, as it seems. From a quick look at the source it seems, default for "input" is ".". Isn't this a bad choice given building always should change something below "."? |
Great question!
The state of what's build is tracked here
.yarn/yarn.build.json. Inside there, we track each command thats run. Soyarn buildandyarn testare tracked separately.If any command re-runs if nothings changed, it means something did change. We look at the whole folder and check the last modified date for each file.
Typically this means output files are not being tracked and are being picked up as input. We try to guess based on node/npm conventions where your input and output files are.
You can explicitly define the input or output folders in
package.jsonwith: