a6e718a00a
When using glob patterns with parent directory references (../), the
default behavior strips ".." segments resulting in unexpected paths.
For example, "../shared/**" would place files at "shared/" instead of
preserving the original path structure.
This adds an optional "destination" parameter that allows users to
explicitly specify where matched files should be placed:
additionalFiles({
files: ["../shared/**"],
destination: "apps/shared"
})
When destination is specified, files are placed relative to the glob
pattern's base directory under the destination path. This is useful
in monorepo setups where files need to maintain their structure.
Also updates documentation to explain this behavior and the new option.
Slack thread: https://triggerdotdev.slack.com/archives/C08N6PJTK2Q/p1767946469914139?thread_ts=1756405171.439939&cid=C08N6PJTK2Q