Initial commit

This commit is contained in:
schihei committed 2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 files changed
+5280367

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const { exec } = require("child_process");
const fs = require("fs-extra");
const path = require("path");
const { promisify } = require("util");
(async () => {
const execAsync = promisify(exec);
const { stdout: globalPath } = await execAsync("npm config get prefix");
const teamsfxPath = path.join(globalPath.trim(), "teamsfx.ps1");
if (await fs.pathExists(teamsfxPath)) {
try {
await fs.unlink(teamsfxPath);
} catch (e) {
// console.error(e);
}
}
})();