@rayburst/cli 0.3.5 → 0.3.7

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.
@@ -258,8 +258,18 @@ function traceConfigProperty(configObject, propertyName) {
258
258
  if (isVariableDeclaration(declaration)) {
259
259
  return traceVariableDataFlow(declaration);
260
260
  }
261
- if (isImportDeclaration(declaration.getParent())) {
262
- return declaration.getParent();
261
+ const parent = declaration.getParent();
262
+ if (isImportDeclaration(parent)) {
263
+ return parent;
264
+ }
265
+ if (parent && parent.getKind() === 283) {
266
+ const grandParent = parent.getParent();
267
+ if (grandParent) {
268
+ const importDecl = grandParent.getParent();
269
+ if (importDecl && isImportDeclaration(importDecl)) {
270
+ return importDecl;
271
+ }
272
+ }
263
273
  }
264
274
  return declaration;
265
275
  }
@@ -676,6 +686,8 @@ function detectConfigBasedComponents(sourceFile, nodes, nodeMap, edges, projectP
676
686
  });
677
687
  totalEdgesCreated++;
678
688
  console.log(`[DEBUG] Created edge: RouterProvider -> Router`);
689
+ console.log(`[DEBUG] Source ID: ${routerProviderNode.id}`);
690
+ console.log(`[DEBUG] Target ID: ${routerNode.id}`);
679
691
  }
680
692
  } else {
681
693
  console.warn("[DEBUG] RouterProvider external node not found, falling back to App -> Router edge");
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  readLocalMeta,
10
10
  writeLocalAnalysis,
11
11
  writeLocalMeta
12
- } from "./chunk-ZVRNWDI5.js";
12
+ } from "./chunk-IUY7AA22.js";
13
13
  export {
14
14
  addGitignoreEntry,
15
15
  analyzeProject,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rayburstPlugin
3
- } from "./chunk-ZVRNWDI5.js";
3
+ } from "./chunk-IUY7AA22.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.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "Rayburst - Automatic code analysis for TypeScript/JavaScript projects via Vite plugin",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",