@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: isRouterProvider ? "provider" : "component",
1489
+ type: isProvider ? "provider" : "component",
1489
1490
  position: { x: 1200, y: nodes.length * 150 },
1490
1491
  // Position externals to the right
1491
- data: isRouterProvider ? {
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
@@ -9,7 +9,7 @@ import {
9
9
  readLocalMeta,
10
10
  writeLocalAnalysis,
11
11
  writeLocalMeta
12
- } from "./chunk-4YULNVZV.js";
12
+ } from "./chunk-XQX4VJOQ.js";
13
13
  export {
14
14
  addGitignoreEntry,
15
15
  analyzeProject,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rayburstPlugin
3
- } from "./chunk-4YULNVZV.js";
3
+ } from "./chunk-XQX4VJOQ.js";
4
4
  export {
5
5
  rayburstPlugin
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayburst/cli",
3
- "version": "0.4.1",
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.5",
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",