@ts-morph/bootstrap
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -181,2 +181,3 @@ 'use strict'; | ||
constructor(objs, options) { | ||
var _a; | ||
const { tsConfigResolver } = objs; | ||
@@ -202,2 +203,3 @@ this.fileSystem = objs.fileSystem; | ||
this.compilerHost = compilerHost; | ||
this.configFileParsingDiagnostics = (_a = tsConfigResolver === null || tsConfigResolver === void 0 ? void 0 : tsConfigResolver.getErrors()) !== null && _a !== void 0 ? _a : []; | ||
function getCompilerOptions() { | ||
@@ -328,3 +330,3 @@ return Object.assign(Object.assign({}, getTsConfigCompilerOptions()), (options.compilerOptions || {})); | ||
const oldProgram = this._oldProgram; | ||
const program = common.ts.createProgram(Object.assign({ rootNames: Array.from(this._sourceFileCache.getSourceFilePaths()), options: this.compilerOptions.get(), host: this.compilerHost, oldProgram }, options)); | ||
const program = common.ts.createProgram(Object.assign({ rootNames: Array.from(this._sourceFileCache.getSourceFilePaths()), options: this.compilerOptions.get(), host: this.compilerHost, oldProgram, configFileParsingDiagnostics: this.configFileParsingDiagnostics }, options)); | ||
this._oldProgram = program; | ||
@@ -331,0 +333,0 @@ return program; |
{ | ||
"name": "@ts-morph/bootstrap", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "API for getting quickly set up with the TypeScript Compiler API.", | ||
@@ -5,0 +5,0 @@ "keywords": ["typescript", "compiler", "bootstrap"], |
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
46328
794