@rayburst/cli 0.4.16 → 0.4.17

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.
@@ -2031,9 +2031,12 @@ var unpluginFactory = (options = {}) => {
2031
2031
  const stagedFiles = newAnalysis.stagedFilesMetadata?.[branchId] || [];
2032
2032
  const committedFiles = newAnalysis.committedFilesMetadata?.[branchId] || [];
2033
2033
  const changedFilePaths = /* @__PURE__ */ new Set();
2034
- unstagedFiles.forEach((f) => changedFilePaths.add(f.filePath));
2035
- stagedFiles.forEach((f) => changedFilePaths.add(f.filePath));
2036
- committedFiles.forEach((f) => changedFilePaths.add(f.filePath));
2034
+ const normalizeFilePath = (absPath) => {
2035
+ return absPath.replace(projectPath, "").replace(/^\//, "");
2036
+ };
2037
+ unstagedFiles.forEach((f) => changedFilePaths.add(normalizeFilePath(f.filePath)));
2038
+ stagedFiles.forEach((f) => changedFilePaths.add(normalizeFilePath(f.filePath)));
2039
+ committedFiles.forEach((f) => changedFilePaths.add(normalizeFilePath(f.filePath)));
2037
2040
  for (const node of nodes) {
2038
2041
  const filePath = node.id.split("::")[0];
2039
2042
  if (changedFilePaths.has(filePath)) {
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  readLocalMeta,
10
10
  writeLocalAnalysis,
11
11
  writeLocalMeta
12
- } from "./chunk-S2EAUZ7S.js";
12
+ } from "./chunk-QYFWPPKG.js";
13
13
  export {
14
14
  addGitignoreEntry,
15
15
  analyzeProject,
@@ -2,7 +2,7 @@ import {
2
2
  rayburstPlugin,
3
3
  unpluginFactory,
4
4
  vite_plugin_default
5
- } from "./chunk-S2EAUZ7S.js";
5
+ } from "./chunk-QYFWPPKG.js";
6
6
  export {
7
7
  vite_plugin_default as default,
8
8
  rayburstPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayburst/cli",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "description": "Rayburst - Automatic code analysis for TypeScript/JavaScript projects via Vite plugin",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",