express-tsx
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -15,3 +15,3 @@ "use strict"; | ||
class Compile { | ||
constructor(compilerOptions = {}, is_development = !(/production/i.test(process.env.NODE_ENV))) { | ||
constructor(compilerOptions = {}, development = !(/production/i.test(process.env.NODE_ENV))) { | ||
this.compilerOptions = {}; | ||
@@ -43,3 +43,3 @@ this.project = typescript_1.sys.getCurrentDirectory(); | ||
md5 = this.updateScriptVersion(file); | ||
this.is_development && typescript_1.sys.watchFile(file, this.watch); | ||
this.development && typescript_1.sys.watchFile(file, this.watch); | ||
} | ||
@@ -69,3 +69,3 @@ return md5; | ||
}; | ||
this.is_development = false; | ||
this.development = false; | ||
this.watch = (file) => { | ||
@@ -155,3 +155,3 @@ this.updateScriptVersion(file); | ||
this.init(compilerOptions); | ||
this.is_development = is_development; | ||
this.development = development; | ||
this.server = ts.createLanguageService({ | ||
@@ -158,0 +158,0 @@ getCompilationSettings: () => this.compilerOptions, |
{ | ||
"name": "express-tsx", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "express view engine", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -44,3 +44,3 @@ import ts = require('typescript') | ||
md5 = this.updateScriptVersion(file) | ||
this.is_development && sys.watchFile(file,this.watch) | ||
this.development && sys.watchFile(file,this.watch) | ||
} | ||
@@ -65,5 +65,5 @@ return md5 | ||
} | ||
constructor(compilerOptions:ts.CompilerOptions={},is_development=!(/production/i.test(process.env.NODE_ENV))){ | ||
constructor(compilerOptions:ts.CompilerOptions={},development=!(/production/i.test(process.env.NODE_ENV))){ | ||
this.init(compilerOptions) | ||
this.is_development = is_development | ||
this.development = development | ||
this.server = ts.createLanguageService({ | ||
@@ -79,3 +79,3 @@ getCompilationSettings:()=>this.compilerOptions, | ||
} | ||
is_development = false | ||
development = false | ||
watch = (file)=>{ | ||
@@ -82,0 +82,0 @@ this.updateScriptVersion(file) |
@@ -9,4 +9,4 @@ declare var requirejs:any | ||
} | ||
if(!regx.nativeCode.test(Array.prototype.forEach.toString())){ define('es5-shim',null) } | ||
if(!regx.nativeCode.test(Array.prototype.forEach.toString())){ define('es6-shim',null) } | ||
if('forEach' in Array.prototype && !regx.nativeCode.test(Array.prototype.forEach.toString())){ define('es5-shim',null) } | ||
if('assign' in Object && !regx.nativeCode.test(Object.assign.toString())){ define('es6-shim',null) } | ||
var map = imports.reduce(function(target,module){ | ||
@@ -13,0 +13,0 @@ var name = module.split('?').slice(0,1)[0].split('.').slice(0,-1)[0] |
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
55381