Skip to content

Commit

Permalink
feat: upgrade to TS 4.9 (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Nov 19, 2022
1 parent 3d64776 commit e334437
Show file tree
Hide file tree
Showing 38 changed files with 15,461 additions and 13,396 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -6,5 +6,5 @@ insert_final_newline = true

[*.ts]
indent_style = space
indent_size = 4
indent_size = 2
trim_trailing_whitespace = true
10 changes: 5 additions & 5 deletions deno/bootstrap/ts_morph_bootstrap.js
Expand Up @@ -239,14 +239,14 @@ class Project {
return sourceFiles;
}
addSourceFilesFromTsConfig(tsConfigFilePath) {
const resolver = this._getTsConfigResolover(tsConfigFilePath);
const resolver = this._getTsConfigResolver(tsConfigFilePath);
return this._addSourceFilesForTsConfigResolver(resolver, resolver.getCompilerOptions());
}
addSourceFilesFromTsConfigSync(tsConfigFilePath) {
const resolver = this._getTsConfigResolover(tsConfigFilePath);
const resolver = this._getTsConfigResolver(tsConfigFilePath);
return this._addSourceFilesForTsConfigResolverSync(resolver, resolver.getCompilerOptions());
}
_getTsConfigResolover(tsConfigFilePath) {
_getTsConfigResolver(tsConfigFilePath) {
const standardizedFilePath = this._fileSystemWrapper.getStandardizedAbsolutePath(tsConfigFilePath);
return new TsConfigResolver(this._fileSystemWrapper, standardizedFilePath, this.compilerOptions.getEncoding());
}
Expand Down Expand Up @@ -327,9 +327,9 @@ class Project {
if (isStandardizedFilePath(filePathOrSearchFunction)) {
return this._sourceFileCache.getSourceFileFromCacheFromFilePath(filePathOrSearchFunction);
}
const allSoureFilesIterable = this.getSourceFiles();
const allSourceFilesIterable = this.getSourceFiles();
return selectSmallestDirPathResult(function* () {
for (const sourceFile of allSoureFilesIterable) {
for (const sourceFile of allSourceFilesIterable) {
if (filePathOrSearchFunction(sourceFile))
yield sourceFile;
}
Expand Down
21 changes: 12 additions & 9 deletions deno/common/ts_morph_common.js

Large diffs are not rendered by default.

0 comments on commit e334437

Please sign in to comment.