express-tsx
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -32,5 +32,6 @@ "use strict"; | ||
}; | ||
this.compilerOptionsHash = ''; | ||
this.updateScriptVersion = (file) => { | ||
let code = typescript_1.sys.readFile(file); | ||
return this.hash[file] = typescript_1.sys.createHash(code); | ||
return this.hash[file] = typescript_1.sys.createHash(code + this.compilerOptionsHash); | ||
}; | ||
@@ -65,2 +66,3 @@ this.getScriptVersion = (file) => { | ||
this.compilerOptions = Object.assign({}, this.compilerOptions, Compile.defaultCompilerOptions, compilerOptions); | ||
this.compilerOptionsHash = typescript_1.sys.createHash(JSON.stringify(this.compilerOptions)); | ||
}; | ||
@@ -67,0 +69,0 @@ this.is_development = false; |
{ | ||
"name": "express-tsx", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "express view engine", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -34,5 +34,6 @@ import ts = require('typescript') | ||
} | ||
compilerOptionsHash:string = '' | ||
updateScriptVersion = (file)=>{ | ||
let code = sys.readFile(file) | ||
return this.hash[file] = sys.createHash(code) | ||
return this.hash[file] = sys.createHash(code+this.compilerOptionsHash) | ||
} | ||
@@ -62,2 +63,3 @@ getScriptVersion = (file)=>{ | ||
this.compilerOptions = { ...this.compilerOptions, ...Compile.defaultCompilerOptions, ...compilerOptions, } | ||
this.compilerOptionsHash = sys.createHash(JSON.stringify(this.compilerOptions)) | ||
} | ||
@@ -64,0 +66,0 @@ constructor(compilerOptions:ts.CompilerOptions={},is_development=!(/production/i.test(process.env.NODE_ENV))){ |
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
51601
770