Skip to content

Commit

Permalink
fix: remove typescript version log of api-extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhc committed Aug 29, 2023
1 parent 1d17e9c commit f161ade
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,10 @@
"vite": {
"optional": true
}
},
"pnpm": {
"patchedDependencies": {
"@microsoft/api-extractor@7.36.4": "patches/@microsoft__api-extractor@7.36.4.patch"
}
}
}
24 changes: 24 additions & 0 deletions patches/@microsoft__api-extractor@7.36.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/lib/api/Extractor.js b/lib/api/Extractor.js
index 781b5b59330c5a54feb01d06efe431aadd733b32..20cbdea06d359c8ba6f7379b2b992b43ed0a05b7 100644
--- a/lib/api/Extractor.js
+++ b/lib/api/Extractor.js
@@ -258,7 +258,7 @@ class Extractor {
});
}
static _checkCompilerCompatibility(extractorConfig, messageRouter) {
- messageRouter.logInfo("console-preamble" /* ConsoleMessageId.Preamble */, `Analysis will use the bundled TypeScript version ${ts.version}`);
+ // messageRouter.logInfo("console-preamble" /* ConsoleMessageId.Preamble */, `Analysis will use the bundled TypeScript version ${ts.version}`);
try {
const typescriptPath = resolve.sync('typescript', {
basedir: extractorConfig.projectFolder,
@@ -273,8 +273,8 @@ class Extractor {
const theirMajor = semver.major(packageJson.version);
const theirMinor = semver.minor(packageJson.version);
if (theirMajor > ourMajor || (theirMajor === ourMajor && theirMinor > ourMinor)) {
- messageRouter.logInfo("console-compiler-version-notice" /* ConsoleMessageId.CompilerVersionNotice */, `*** The target project appears to use TypeScript ${packageJson.version} which is newer than the` +
- ` bundled compiler engine; consider upgrading API Extractor.`);
+ // messageRouter.logInfo("console-compiler-version-notice" /* ConsoleMessageId.CompilerVersionNotice */, `*** The target project appears to use TypeScript ${packageJson.version} which is newer than the` +
+ // ` bundled compiler engine; consider upgrading API Extractor.`);
}
}
}
14 changes: 12 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f161ade

Please sign in to comment.