Skip to content

Commit

Permalink
Patch tslint auto fix for macOS Catalina until tslint#6.x is out (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
i1skn authored Nov 26, 2019
1 parent 548bc26 commit f318582
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions patches/tslint+5.20.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
patch-package
--- a/node_modules/tslint/lib/linter.js
+++ b/node_modules/tslint/lib/linter.js
@@ -193,7 +193,7 @@ var Linter = /** @class */ (function () {
var oldSource = fs.readFileSync(filePath, "utf-8");
fileNewSource = rule_1.Replacement.applyFixes(oldSource, fileFixes);
}
- fs.writeFileSync(filePath, fileNewSource);
+ fs.writeFileSync(path.resolve(filePath), fileNewSource);
_this.updateProgram(filePath);
});
return source;

0 comments on commit f318582

Please sign in to comment.