technical-debt-radar 1.0.8 → 1.0.9

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 +10 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -18204,6 +18204,16 @@ var require_dead_code_detector = __commonJS({
18204
18204
  if (project.getSourceFile("/" + indexPath))
18205
18205
  return indexPath;
18206
18206
  }
18207
+ const suffix = "/" + resolved;
18208
+ for (const sf of project.getSourceFiles()) {
18209
+ const fp = sf.getFilePath();
18210
+ if (fp.endsWith(suffix))
18211
+ return normalizeFilePath(fp);
18212
+ for (const ext of extensions) {
18213
+ if (fp.endsWith(suffix + ext))
18214
+ return normalizeFilePath(fp);
18215
+ }
18216
+ }
18207
18217
  return void 0;
18208
18218
  }
18209
18219
  function posixDirname(filePath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "technical-debt-radar",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
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",