technical-debt-radar 1.13.0 → 1.13.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21962,7 +21962,8 @@ var import_chalk4 = __toESM(require("chalk"));
21962
21962
  var import_inquirer2 = __toESM(require("inquirer"));
21963
21963
  var import_analyzers3 = __toESM(require_dist3());
21964
21964
  function applyFix(filePath, fix) {
21965
- const content = fsSync2.readFileSync(filePath, "utf-8");
21965
+ const fullPath = path5.isAbsolute(filePath) ? filePath : path5.resolve(filePath);
21966
+ const content = fsSync2.readFileSync(fullPath, "utf-8");
21966
21967
  const lines = content.split("\n");
21967
21968
  const fixedLines = fix.fixedCode.split("\n");
21968
21969
  const start = fix.startLine - 1;
@@ -21982,7 +21983,7 @@ function applyFix(filePath, fix) {
21982
21983
  }
21983
21984
  }
21984
21985
  }
21985
- fsSync2.writeFileSync(filePath, lines.join("\n"), "utf-8");
21986
+ fsSync2.writeFileSync(fullPath, lines.join("\n"), "utf-8");
21986
21987
  }
21987
21988
  async function runScan(targetPath, options) {
21988
21989
  const { compiled: policy } = await loadPolicy(options.config, options.rules);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "technical-debt-radar",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Stop Node.js production crashes before merge. 47 detection patterns across 5 categories.",
5
5
  "bin": {
6
6
  "radar": "dist/index.js",