Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade to TS 4.9 #1354

Merged
merged 3 commits into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.

Loading