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
13 lines
268 B
JavaScript
Executable File
13 lines
268 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import "dotenv/config";
|
|
|
|
if (process.env.DEBUG) {
|
|
console.info("Azure SDK for JS dev-tool: bootstrapping from", import.meta.dirname);
|
|
}
|
|
|
|
await import("./src/index.ts");
|