@yahoo/uds-create-cli 5.68.1 → 5.68.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/subprocess/transform-runner.mjs +13 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-create-cli",
|
|
3
|
-
"version": "5.68.
|
|
3
|
+
"version": "5.68.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
32
32
|
"@orpc/client": "^1.13.9",
|
|
33
33
|
"@orpc/contract": "^1.13.9",
|
|
34
|
-
"@yahoo/uds-create-config": "5.68.
|
|
35
|
-
"@yahoo/uds-create-loader": "5.68.
|
|
36
|
-
"@yahoo/uds-create-types": "5.68.
|
|
37
|
-
"@yahoo/uds-create-utils": "5.68.
|
|
34
|
+
"@yahoo/uds-create-config": "5.68.2",
|
|
35
|
+
"@yahoo/uds-create-loader": "5.68.2",
|
|
36
|
+
"@yahoo/uds-create-types": "5.68.2",
|
|
37
|
+
"@yahoo/uds-create-utils": "5.68.2",
|
|
38
38
|
"esbuild": "^0.27.4",
|
|
39
39
|
"ts-morph": "^27.0.2",
|
|
40
40
|
"get-tsconfig": "^4.10.0",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
},
|
|
54
54
|
"udsSchemaVersion": 20261030163028,
|
|
55
55
|
"optionalDependencies": {
|
|
56
|
-
"@yahoo/uds-create-cli-darwin-arm64": "5.68.
|
|
57
|
-
"@yahoo/uds-create-cli-darwin-x64": "5.68.
|
|
58
|
-
"@yahoo/uds-create-cli-linux-arm64": "5.68.
|
|
59
|
-
"@yahoo/uds-create-cli-linux-x64": "5.68.
|
|
60
|
-
"@yahoo/uds-create-cli-linux-arm64-musl": "5.68.
|
|
61
|
-
"@yahoo/uds-create-cli-linux-x64-musl": "5.68.
|
|
56
|
+
"@yahoo/uds-create-cli-darwin-arm64": "5.68.2",
|
|
57
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.68.2",
|
|
58
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.68.2",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-x64": "5.68.2",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.68.2",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.68.2"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -82291,6 +82291,7 @@ function slotTargets(config2, path2, body) {
|
|
|
82291
82291
|
}
|
|
82292
82292
|
function computeSlotTargets(config2, body) {
|
|
82293
82293
|
const byLayer = /* @__PURE__ */ new Map();
|
|
82294
|
+
const targeted = /* @__PURE__ */ new Map();
|
|
82294
82295
|
const untargeted = [];
|
|
82295
82296
|
for (const [from, decl] of Object.entries(body.props ?? {})) {
|
|
82296
82297
|
if (decl?.type === "slot") {
|
|
@@ -82304,11 +82305,15 @@ function computeSlotTargets(config2, body) {
|
|
|
82304
82305
|
if (decl?.type !== "forward") continue;
|
|
82305
82306
|
if (!routesContent(config2, body.layers, decl)) continue;
|
|
82306
82307
|
const target2 = refOf(decl.target);
|
|
82307
|
-
if (target2)
|
|
82308
|
-
|
|
82309
|
-
|
|
82310
|
-
|
|
82311
|
-
|
|
82308
|
+
if (target2) {
|
|
82309
|
+
const layer = pathOf2(target2);
|
|
82310
|
+
const route = {
|
|
82311
|
+
...decl,
|
|
82312
|
+
from
|
|
82313
|
+
};
|
|
82314
|
+
byLayer.set(layer, route);
|
|
82315
|
+
targeted.set(layer, [...(targeted.get(layer) ?? []).filter((other) => intoName(other.into) !== intoName(route.into)), route]);
|
|
82316
|
+
} else untargeted.push({
|
|
82312
82317
|
...decl,
|
|
82313
82318
|
from,
|
|
82314
82319
|
untargeted: true
|
|
@@ -82319,15 +82324,16 @@ function computeSlotTargets(config2, body) {
|
|
|
82319
82324
|
if (root && content && !byLayer.has(root)) byLayer.set(root, content);
|
|
82320
82325
|
return {
|
|
82321
82326
|
byLayer,
|
|
82327
|
+
targeted,
|
|
82322
82328
|
untargeted
|
|
82323
82329
|
};
|
|
82324
82330
|
}
|
|
82325
82331
|
function slotTargetsOf(config2, path2) {
|
|
82326
82332
|
const body = bodyOf(config2, path2);
|
|
82327
82333
|
if (!body) return [];
|
|
82328
|
-
const {
|
|
82334
|
+
const { targeted: targetedByLayer, untargeted } = slotTargets(config2, path2, body);
|
|
82329
82335
|
const root = rootKeyOf(body.layers ?? {});
|
|
82330
|
-
return [...[...
|
|
82336
|
+
return [...[...targetedByLayer].flatMap(([layer, routes]) => routes.map((decl) => [layer, decl])).map(([layer, decl]) => ({
|
|
82331
82337
|
layer,
|
|
82332
82338
|
from: decl.from,
|
|
82333
82339
|
into: intoName(decl.into)
|