express-tsx-compiler
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -77,2 +77,3 @@ "use strict"; | ||
this.compilerOptions = Object.assign({}, baseconfig, this.compilerOptions, config); | ||
return configfile; | ||
}; | ||
@@ -172,3 +173,2 @@ this.watcher = new events_1.EventEmitter(); | ||
this.tourl = (baseurl) => (m) => (baseurl + m + `?v=${this.getScriptVersion(m)}`).replace(/\\/g, '/'); | ||
this.init(compilerOptionsOrProjectDirname); | ||
this.development = development; | ||
@@ -184,2 +184,6 @@ this.server = ts.createLanguageService({ | ||
}); | ||
let configfile = this.init(compilerOptionsOrProjectDirname); | ||
if (this.development && typeof configfile === 'string') { | ||
this.watchers.push(typescript_1.sys.watchFile(configfile, () => this.init(compilerOptionsOrProjectDirname))); | ||
} | ||
} | ||
@@ -186,0 +190,0 @@ get compilerOptions() { return this.__compilerOptions; } |
{ | ||
"name": "express-tsx-compiler", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "src/index.ts", |
@@ -91,5 +91,5 @@ import ts = require('typescript') | ||
} | ||
return configfile | ||
} | ||
constructor(compilerOptionsOrProjectDirname?:ts.CompilerOptions|string,development=!(/production/i.test(process.env.NODE_ENV))){ | ||
this.init(compilerOptionsOrProjectDirname) | ||
this.development = development | ||
@@ -105,2 +105,8 @@ this.server = ts.createLanguageService({ | ||
}) | ||
let configfile = this.init(compilerOptionsOrProjectDirname) | ||
if(this.development && typeof configfile ==='string'){ | ||
this.watchers.push( | ||
sys.watchFile(configfile,()=>this.init(compilerOptionsOrProjectDirname)) | ||
) | ||
} | ||
} | ||
@@ -107,0 +113,0 @@ watcher = new EventEmitter() |
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
31321
10
467