express-tsx-compiler
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -17,3 +17,4 @@ "use strict"; | ||
constructor(compilerOptions = {}, development = !(/production/i.test(process.env.NODE_ENV))) { | ||
this.compilerOptions = {}; | ||
this.__compilerOptions = {}; | ||
this.compilerOptionsHash = ''; | ||
this.project = typescript_1.sys.getCurrentDirectory(); | ||
@@ -34,3 +35,2 @@ this.hash = {}; | ||
}; | ||
this.compilerOptionsHash = ''; | ||
this.updateScriptVersion = (file) => { | ||
@@ -68,3 +68,2 @@ let code = typescript_1.sys.readFile(file); | ||
this.compilerOptions = Object.assign({}, this.compilerOptions, Compile.defaultCompilerOptions, compilerOptions); | ||
this.compilerOptionsHash = typescript_1.sys.createHash(JSON.stringify(this.compilerOptions)); | ||
}; | ||
@@ -177,2 +176,7 @@ this.development = false; | ||
} | ||
get compilerOptions() { return this.__compilerOptions; } | ||
set compilerOptions(val) { | ||
Object.assign(this.__compilerOptions, val); | ||
this.compilerOptionsHash = typescript_1.sys.createHash(JSON.stringify(this.compilerOptions)); | ||
} | ||
} | ||
@@ -179,0 +183,0 @@ Compile.defaultCompilerOptions = { |
{ | ||
"name": "express-tsx-compiler", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "src/index.ts", |
@@ -12,3 +12,9 @@ import ts = require('typescript') | ||
server:ts.LanguageService | ||
compilerOptions:ts.CompilerOptions = {} | ||
private __compilerOptions:ts.CompilerOptions = {} | ||
get compilerOptions(){ return this.__compilerOptions } | ||
set compilerOptions(val){ | ||
Object.assign(this.__compilerOptions,val) | ||
this.compilerOptionsHash = sys.createHash(JSON.stringify(this.compilerOptions)) | ||
} | ||
compilerOptionsHash:string = '' | ||
static defaultCompilerOptions:ts.CompilerOptions = { | ||
@@ -36,3 +42,2 @@ target: ts.ScriptTarget.ES5, | ||
} | ||
compilerOptionsHash:string = '' | ||
updateScriptVersion = (file)=>{ | ||
@@ -65,3 +70,2 @@ let code = sys.readFile(file) | ||
this.compilerOptions = { ...this.compilerOptions, ...Compile.defaultCompilerOptions, ...compilerOptions, } | ||
this.compilerOptionsHash = sys.createHash(JSON.stringify(this.compilerOptions)) | ||
} | ||
@@ -68,0 +72,0 @@ constructor(compilerOptions:ts.CompilerOptions={},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
27635
403