Skip to content

Commit e334437

Browse files
authoredNov 19, 2022
feat: upgrade to TS 4.9 (#1354)
1 parent 3d64776 commit e334437

38 files changed

+15461
-13396
lines changed
 

‎.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ insert_final_newline = true
66

77
[*.ts]
88
indent_style = space
9-
indent_size = 4
9+
indent_size = 2
1010
trim_trailing_whitespace = true

‎deno/bootstrap/ts_morph_bootstrap.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ class Project {
239239
return sourceFiles;
240240
}
241241
addSourceFilesFromTsConfig(tsConfigFilePath) {
242-
const resolver = this._getTsConfigResolover(tsConfigFilePath);
242+
const resolver = this._getTsConfigResolver(tsConfigFilePath);
243243
return this._addSourceFilesForTsConfigResolver(resolver, resolver.getCompilerOptions());
244244
}
245245
addSourceFilesFromTsConfigSync(tsConfigFilePath) {
246-
const resolver = this._getTsConfigResolover(tsConfigFilePath);
246+
const resolver = this._getTsConfigResolver(tsConfigFilePath);
247247
return this._addSourceFilesForTsConfigResolverSync(resolver, resolver.getCompilerOptions());
248248
}
249-
_getTsConfigResolover(tsConfigFilePath) {
249+
_getTsConfigResolver(tsConfigFilePath) {
250250
const standardizedFilePath = this._fileSystemWrapper.getStandardizedAbsolutePath(tsConfigFilePath);
251251
return new TsConfigResolver(this._fileSystemWrapper, standardizedFilePath, this.compilerOptions.getEncoding());
252252
}
@@ -327,9 +327,9 @@ class Project {
327327
if (isStandardizedFilePath(filePathOrSearchFunction)) {
328328
return this._sourceFileCache.getSourceFileFromCacheFromFilePath(filePathOrSearchFunction);
329329
}
330-
const allSoureFilesIterable = this.getSourceFiles();
330+
const allSourceFilesIterable = this.getSourceFiles();
331331
return selectSmallestDirPathResult(function* () {
332-
for (const sourceFile of allSoureFilesIterable) {
332+
for (const sourceFile of allSourceFilesIterable) {
333333
if (filePathOrSearchFunction(sourceFile))
334334
yield sourceFile;
335335
}

‎deno/common/ts_morph_common.js

+12-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.