Commit d31bb06
committed
[release] Search multiple anchors for --deployFunctions source dirs
A relative --functionPath was previously folded into fn.dirPath and resolved
only against the loaded config's directory, so callers whose config lives in
a nested folder (e.g. packages/shared/.appwrite/) couldn't pass a path
relative to their repo root. The override is now decoupled from dirPath and
the resolver tries every sensible anchor (cwd, the config dir, the appwrite
sidecar folder) for any relative source string, taking the first existing
match. Behavior for absolute paths and the name-based fallbacks is unchanged,
and config-declared dirPaths still resolve via their original anchor — the
new behavior is a strict superset.1 parent 2cb0161 commit d31bb06
2 files changed
Lines changed: 30 additions & 10 deletions
Lines changed: 29 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
97 | 113 | | |
98 | 114 | | |
99 | 115 | | |
| |||
154 | 170 | | |
155 | 171 | | |
156 | 172 | | |
157 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
158 | 177 | | |
159 | 178 | | |
160 | 179 | | |
| |||
308 | 327 | | |
309 | 328 | | |
310 | 329 | | |
311 | | - | |
| 330 | + | |
| 331 | + | |
312 | 332 | | |
313 | 333 | | |
314 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| |||
0 commit comments