fix(3663): address CodeRabbit surface/layout follow-ups

This commit is contained in:
Tom Boucher
2026-05-17 01:39:10 -04:00
parent aa73c2d914
commit b8fa89b5b6
4 changed files with 27 additions and 15 deletions

View File

@@ -204,7 +204,10 @@ function resolveSurface(runtimeConfigDir, manifest, clusterMap) {
* @param {Object} [clusterMap]
*/
function applySurface(runtimeConfigDir, layout, manifest, clusterMap) {
const resolved = resolveSurface(runtimeConfigDir, manifest, clusterMap);
if (path.resolve(runtimeConfigDir) !== path.resolve(layout.configDir)) {
throw new TypeError('applySurface runtimeConfigDir must match layout.configDir');
}
const resolved = resolveSurface(layout.configDir, manifest, clusterMap);
for (const kind of layout.kinds) {
const staged = kind.stage(resolved);
const dest = path.join(layout.configDir, kind.destSubpath);