@rayburst/cli 0.4.9 → 0.4.10

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.
@@ -2102,25 +2102,32 @@ function rayburstPlugin(options = {}) {
2102
2102
  // Hook 3: Watch for changes using Vite's built-in watcher
2103
2103
  configureServer(server) {
2104
2104
  if (!enabled) return;
2105
+ console.log(chalk2.blue("[Rayburst] Configuring file watcher..."));
2105
2106
  const handleFileChange = (filePath) => {
2107
+ console.log(chalk2.gray(`[Rayburst] Raw file event: ${filePath}`));
2106
2108
  if (!filePath.match(/\.(ts|tsx|js|jsx)$/)) {
2109
+ console.log(chalk2.gray(`[Rayburst] Skipping (not TS/JS): ${filePath}`));
2107
2110
  return;
2108
2111
  }
2109
2112
  if (filePath.includes("node_modules") || filePath.includes(".rayburst") || filePath.includes(".test.") || filePath.includes(".spec.")) {
2113
+ console.log(chalk2.gray(`[Rayburst] Skipping (filtered): ${filePath}`));
2110
2114
  return;
2111
2115
  }
2116
+ console.log(chalk2.yellow(`[Rayburst] Accepted file change: ${filePath}`));
2112
2117
  if (debounceTimer) {
2113
2118
  clearTimeout(debounceTimer);
2114
2119
  }
2115
2120
  debounceTimer = setTimeout(() => {
2116
2121
  const relativePath = filePath.replace(config.root, "").replace(/^\//, "");
2117
- console.log(chalk2.dim(`[Rayburst] File changed: ${relativePath}`));
2122
+ console.log(chalk2.dim(`[Rayburst] File changed (after debounce): ${relativePath}`));
2118
2123
  runAnalysis(filePath);
2119
2124
  }, debounceMs);
2120
2125
  };
2126
+ console.log(chalk2.blue("[Rayburst] Registering watcher event handlers..."));
2121
2127
  server.watcher.on("change", handleFileChange);
2122
2128
  server.watcher.on("add", handleFileChange);
2123
2129
  server.watcher.on("unlink", handleFileChange);
2130
+ console.log(chalk2.blue("[Rayburst] File watcher configured successfully"));
2124
2131
  const gitHeadPath = path5.join(config.root, ".git", "HEAD");
2125
2132
  if (fs3.existsSync(gitHeadPath)) {
2126
2133
  server.watcher.add(gitHeadPath);
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  readLocalMeta,
10
10
  writeLocalAnalysis,
11
11
  writeLocalMeta
12
- } from "./chunk-PZV3B4QV.js";
12
+ } from "./chunk-UCHCYCAU.js";
13
13
  export {
14
14
  addGitignoreEntry,
15
15
  analyzeProject,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rayburstPlugin
3
- } from "./chunk-PZV3B4QV.js";
3
+ } from "./chunk-UCHCYCAU.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.9",
3
+ "version": "0.4.10",
4
4
  "description": "Rayburst - Automatic code analysis for TypeScript/JavaScript projects via Vite plugin",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@rayburst/cli": "^0.4.8",
45
+ "@rayburst/cli": "^0.4.9",
46
46
  "chalk": "^5.3.0",
47
47
  "ts-morph": "^21.0.1",
48
48
  "zod": "^4.2.0"