@rayburst/cli 0.4.1 → 0.4.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.
|
@@ -1482,17 +1482,18 @@ function createExternalComponentNode(componentName, packageName, sourceFilePath,
|
|
|
1482
1482
|
if (externalNodeMap.has(externalId)) {
|
|
1483
1483
|
return externalNodeMap.get(externalId);
|
|
1484
1484
|
}
|
|
1485
|
+
const isProvider = componentName.endsWith("Provider");
|
|
1485
1486
|
const isRouterProvider = componentName === "RouterProvider" && packageName === "@tanstack/react-router";
|
|
1486
1487
|
const node = {
|
|
1487
1488
|
id: externalId,
|
|
1488
|
-
type:
|
|
1489
|
+
type: isProvider ? "provider" : "component",
|
|
1489
1490
|
position: { x: 1200, y: nodes.length * 150 },
|
|
1490
1491
|
// Position externals to the right
|
|
1491
|
-
data:
|
|
1492
|
+
data: isProvider ? {
|
|
1492
1493
|
providerName: componentName,
|
|
1493
1494
|
label: componentName,
|
|
1494
1495
|
description: `External: ${packageName}`,
|
|
1495
|
-
providerItems: routerConfig ? formatRouterConfigAsProviderItems(routerConfig) : []
|
|
1496
|
+
providerItems: isRouterProvider && routerConfig ? formatRouterConfigAsProviderItems(routerConfig) : []
|
|
1496
1497
|
} : {
|
|
1497
1498
|
componentName,
|
|
1498
1499
|
props: "external",
|
package/dist/index.js
CHANGED
package/dist/vite-plugin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rayburst/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Rayburst - Automatic code analysis for TypeScript/JavaScript projects via Vite plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"zod": "^4.2.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@rayburst/types": "^0.1.
|
|
50
|
+
"@rayburst/types": "^0.1.7",
|
|
51
51
|
"@types/node": "^25.0.2",
|
|
52
52
|
"tsup": "^8.5.1",
|
|
53
53
|
"typescript": "^5.9.3",
|