Skip to content

Commit

Permalink
fix(typescript-service): unset unused loggers (#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Apr 2, 2024
1 parent 1209e09 commit f84302d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-cheetahs-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/typescript-service": patch
---

Unset unused loggers
3 changes: 1 addition & 2 deletions packages/typescript-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"test": "rnx-kit-scripts test"
},
"dependencies": {
"@rnx-kit/tools-node": "^2.0.0",
"chalk": "^4.1.0"
"@rnx-kit/tools-node": "^2.0.0"
},
"peerDependencies": {
"typescript": ">=4.0"
Expand Down
7 changes: 3 additions & 4 deletions packages/typescript-service/src/project.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import chalk from "chalk";
import ts from "typescript";
import { ExternalFileCache, ProjectFileCache } from "./cache";
import type { DiagnosticWriter } from "./diagnostics";
Expand Down Expand Up @@ -41,9 +40,9 @@ export class Project {
//getCancellationToken?(): HostCancellationToken;
getCurrentDirectory: () => process.cwd(),
getDefaultLibFileName: (o) => ts.getDefaultLibFilePath(o),
log: (s: string): void => console.log(chalk.cyanBright(s)),
trace: (s: string): void => console.log(chalk.greenBright(s)),
error: (s: string): void => console.error(chalk.redBright(s)),
//log: (s: string): void;
//trace: (s: string): void;
//error: (s: string): void;
//useCaseSensitiveFileNames?(): boolean;

/*
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4488,7 +4488,6 @@ __metadata:
"@rnx-kit/tools-node": "npm:^2.0.0"
"@rnx-kit/tsconfig": "npm:*"
"@types/node": "npm:^20.0.0"
chalk: "npm:^4.1.0"
eslint: "npm:^8.56.0"
jest: "npm:^29.2.1"
prettier: "npm:^3.0.0"
Expand Down

0 comments on commit f84302d

Please sign in to comment.