Comparing version 1.5.0 to 1.5.1
@@ -5,3 +5,3 @@ { | ||
"description": "Compile and manage your TypeScript project", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"homepage": "https://github.com/basarat/grunt-ts", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -124,2 +124,3 @@ grunt-ts | ||
This is useful in some cases and the most common way is using AMD | ||
* You want the ability to individually compile only changed files (for a faster dev-compile-run cycle) | ||
* However, File order doesn't matter to you, even when you have inter file depenendency (e.g. AngularJS runtime Dependency injection) | ||
@@ -213,3 +214,3 @@ | ||
declaration: false, // true | false (default) | ||
comments: false // true | false (default) | ||
removeComments: true // true (default) | false | ||
}, | ||
@@ -216,0 +217,0 @@ }, |
@@ -553,3 +553,5 @@ /// <reference path="../defs/node/node.d.ts"/> | ||
if (options.removeComments !== null && options.comments !== null) { | ||
if (options.removeComments === null) { | ||
options.removeComments = !options.comments; | ||
} else if (options.comments !== null) { | ||
console.warn('WARNING: Option "comments" and "removeComments" should not be used together'.magenta); | ||
@@ -562,6 +564,4 @@ if (options.removeComments === options.comments) { | ||
} | ||
options.removeComments = !!options.removeComments; | ||
// Remove comments based on the removeComments flag first then based on the comments flag, otherwise true | ||
options.removeComments = options.removeComments === true || options.comments === false || true; | ||
// Was the whole process successful | ||
@@ -568,0 +568,0 @@ var success = true; |
@@ -635,3 +635,5 @@ /// <reference path="../defs/node/node.d.ts"/> | ||
// Remove comments based on the removeComments flag first then based on the comments flag, otherwise true | ||
if (options.removeComments !== null && options.comments !== null) { | ||
if (options.removeComments === null) { | ||
options.removeComments = !options.comments; | ||
} else if (options.comments !== null) { | ||
console.warn('WARNING: Option "comments" and "removeComments" should not be used together'.magenta); | ||
@@ -646,4 +648,3 @@ if (options.removeComments === options.comments) { | ||
} | ||
// Remove comments based on the removeComments flag first then based on the comments flag, otherwise true | ||
options.removeComments = options.removeComments === true || options.comments === false || true; | ||
options.removeComments = !!options.removeComments; | ||
@@ -650,0 +651,0 @@ // Was the whole process successful |
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
21
6672
257
304411