text: "use strict";var tools=require('./tools');var path=require('path');var getFileConfig=tools.getFileConfig;var cwd=process.cwd();var tsOptions;function getTsOptions(){if(!tsOptions){var tscPath=path.resolve(cwd,'./node_modules/typescript/lib/tsc');var tsconfig=getFileConfig('tsconfig.json');var compilerOptions=tsconfig.compilerOptions||{};if(compilerOptions.noResolve===undefined){compilerOptions.noResolve=true;}if(compilerOptions.newLine===undefined){compilerOptions.newLine='lf';}var tscParams=Object.keys(compilerOptions).reduce(function(val,item){return val+"--".concat(item," ").concat(compilerOptions[item]," ");},'');tsOptions={tscPath:tscPath,tsconfig:tsconfig,compilerOptions:compilerOptions,tscParams:tscParams};}return tsOptions;}module.exports=getTsOptions;