Comparing version 1.11.0 to 1.11.1
@@ -29,2 +29,5 @@ # Released | ||
## v1.11.1 | ||
* Do not update templateCache if previous file is same as the new calculated one | ||
# Planned | ||
@@ -31,0 +34,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Compile and manage your TypeScript project", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"homepage": "https://github.com/grunt-ts/grunt-ts", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -50,2 +50,12 @@ /// <reference path="../../defs/tsd.d.ts"/> | ||
}); | ||
// Early exit if new templateCache doesn't change | ||
if (fs.existsSync(dest)) { | ||
var originalContents = fs.readFileSync(dest).toString(); | ||
if (originalContents === fileContent) { | ||
return; | ||
} | ||
} | ||
// write updated contents | ||
fs.writeFileSync(dest, fileContent); | ||
@@ -52,0 +62,0 @@ } |
@@ -52,3 +52,13 @@ /// <reference path="../../defs/tsd.d.ts"/> | ||
}); | ||
// Early exit if new templateCache doesn't change | ||
if (fs.existsSync(dest)) { | ||
var originalContents = fs.readFileSync(dest).toString(); | ||
if (originalContents === fileContent) { | ||
return; | ||
} | ||
} | ||
// write updated contents | ||
fs.writeFileSync(dest, fileContent); | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205195
34
2970