mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
### Packages impacted by this PR `@azure/dev-tool` ### Issues associated with this PR https://github.com/Azure/azure-sdk-for-js/issues/36819 ### Describe the problem that is addressed by this PR Replace tsx runtime with Node's native TypeScript execution. This simplifies the bootstrap chain and removes the tsx dependency. Key changes: - Add "type": "module" to package.json and set engines >= 22.6.0 - Convert launch.js, dtx.js to TypeScript with strip-types shebangs - Delete register.js/register.d.ts (tsx loader no longer needed) - Update tsconfig: module/moduleResolution to NodeNext, add allowImportingTsExtensions and noEmit - Replace all __dirname usage with import.meta.dirname - Replace dynamic require() in resolveProject.ts with createRequire() - Add .ts extensions to all relative imports (~82 files) - Add JSON import assertions (with { type: "json" }) - Upgrade chalk from v4 to v5 (ESM-only) - Remove tsx from dependencies
22 lines
391 B
TypeScript
22 lines
391 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import { updateBackend } from "../src/util/printer.ts";
|
|
|
|
export function silenceLogger(): void {
|
|
updateBackend({
|
|
error: () => {
|
|
/* do nothing */
|
|
},
|
|
warn: () => {
|
|
/* do nothing */
|
|
},
|
|
info: () => {
|
|
/* do nothing */
|
|
},
|
|
log: () => {
|
|
/* do nothing */
|
|
},
|
|
});
|
|
}
|