@ts-morph/bootstrap
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -1,5 +0,5 @@ | ||
import { DocumentRegistry, ts, StringUtils, FileUtils, Memoize, TransactionalFileSystem, TsConfigResolver, errors, InMemoryFileSystemHost, RealFileSystemHost, CompilerOptionsContainer, createHosts, runtime, createModuleResolutionHost } from '@ts-morph/common'; | ||
import { DocumentRegistry, StringUtils, ts, FileUtils, Memoize, TransactionalFileSystem, TsConfigResolver, errors, InMemoryFileSystemHost, RealFileSystemHost, CompilerOptionsContainer, createHosts, runtime, createModuleResolutionHost } from '@ts-morph/common'; | ||
export { CompilerOptionsContainer, InMemoryFileSystemHost, ResolutionHosts, SettingsContainer, ts } from '@ts-morph/common'; | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -52,5 +52,2 @@ | ||
} | ||
addLibFileToCacheByText(filePath, fileText, scriptKind) { | ||
return this.documentRegistry.createOrUpdateSourceFile(filePath, this.compilerOptions.get(), ts.ScriptSnapshot.fromString(fileText), scriptKind); | ||
} | ||
async addOrGetSourceFileFromFilePath(filePath, options) { | ||
@@ -127,3 +124,7 @@ let sourceFile = this.sourceFilesByFilePath.get(filePath); | ||
const fileSystem = getFileSystem(); | ||
const fileSystemWrapper = new TransactionalFileSystem(fileSystem); | ||
const fileSystemWrapper = new TransactionalFileSystem({ | ||
fileSystem, | ||
libFolderPath: options.libFolderPath, | ||
skipLoadingLibFiles: options.skipLoadingLibFiles, | ||
}); | ||
const tsConfigResolver = options.tsConfigFilePath == null | ||
@@ -130,0 +131,0 @@ ? undefined |
@@ -7,3 +7,3 @@ 'use strict'; | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -56,5 +56,2 @@ | ||
} | ||
addLibFileToCacheByText(filePath, fileText, scriptKind) { | ||
return this.documentRegistry.createOrUpdateSourceFile(filePath, this.compilerOptions.get(), common.ts.ScriptSnapshot.fromString(fileText), scriptKind); | ||
} | ||
async addOrGetSourceFileFromFilePath(filePath, options) { | ||
@@ -131,3 +128,7 @@ let sourceFile = this.sourceFilesByFilePath.get(filePath); | ||
const fileSystem = getFileSystem(); | ||
const fileSystemWrapper = new common.TransactionalFileSystem(fileSystem); | ||
const fileSystemWrapper = new common.TransactionalFileSystem({ | ||
fileSystem, | ||
libFolderPath: options.libFolderPath, | ||
skipLoadingLibFiles: options.skipLoadingLibFiles, | ||
}); | ||
const tsConfigResolver = options.tsConfigFilePath == null | ||
@@ -134,0 +135,0 @@ ? undefined |
{ | ||
"name": "@ts-morph/bootstrap", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "API for getting quickly set up with the TypeScript Compiler API.", | ||
@@ -23,15 +23,15 @@ "keywords": ["typescript", "compiler", "bootstrap"], | ||
"dependencies": { | ||
"@ts-morph/common": "~0.15.0" | ||
"@ts-morph/common": "~0.16.0" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.3.0", | ||
"@types/mocha": "^9.1.0", | ||
"@types/chai": "^4.3.1", | ||
"@types/mocha": "^9.1.1", | ||
"chai": "^4.3.6", | ||
"cross-env": "^7.0.3", | ||
"mocha": "^9.2.1", | ||
"mocha": "^10.0.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.69.0", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"ts-node": "^10.6.0", | ||
"typescript": "~4.7.2" | ||
"rollup": "^2.75.5", | ||
"rollup-plugin-typescript2": "^0.32.0", | ||
"ts-node": "^10.8.1", | ||
"typescript": "~4.7.3" | ||
}, | ||
@@ -38,0 +38,0 @@ "publishConfig": { |
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
1157
62952
+ Added@ts-morph/common@0.16.0(transitive)
- Removed@ts-morph/common@0.15.0(transitive)
Updated@ts-morph/common@~0.16.0